deprecated; do not use
document.clear() temporarily erases the specified document (i.e., it clears the window or frame that contains document). This method does not actually remove the contents of the document, and if the window is covered and then uncovered, for example, the document will be redrawn. This is unusual and generally undesirable behavior, and the use of the clear() method is not recommended.
Furthermore, Internet Explorer 3.0 defines this function in an compatible way. On that platform, the clear() method is simply a synonym for Document.open().
The clear() method will be removed from JavaScript in a future version of the language. When you want to use JavaScript to delete the current document and begin a new one, you should first call the close() method for the current document, then call the open() method to open a new document, and then use the write() and writeln() methods to write out the contents of the new document. When you are writing HTML text, you can omit the call to open()--a new text/html document will be automatically opened if you call write() or writeln() without first calling open().
file: /Techref/language/JAVA/SCRIPT/definitive/refp_77.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/12/24 08:12,
18.117.104.132:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/language/JAVA/SCRIPT/definitive/refp_77.htm"> [Chapter 21] Reference: Document.clear()</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.