jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes document.write limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "document.write limit" Watch "document.write limit" New topic

document.write limit

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
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

Joined: Nov 08, 2001
Posts: 15385
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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

document.write() is a dinosaur. There are always better modern alternatives.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: document.write limit
It's not a secret anymore!