Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

document.write limit

 
Kevin Tysen
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've read in some books that there is a limit to how much text you can write to a document using the document.write() command. So I try not to use that command much. But I have no idea about the limit. Is it 100 characters? 1000 characters? 10000 characters? I assume it depends on the browser, too. Do recent browsers let you write more text that way?
How about Ajax? When you put text in a document with Ajax, is there a limit?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this day in age, only in rare cases you use document.write.

The limit really depends on the user's computer and how complicated the data is.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
document.write() is a dinosaur. There are always better modern alternatives.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic