aspose file tools*
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
Author

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61232
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: document.write limit