please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Document.clear() Method

Name

Document.clear() Method---clear a document

Availability

deprecated; do not use

Synopsis

document.clear()

Arguments

none

Returns

nothing

Description

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().

See Also

"Document", "Document.close()", "Document.open()", "Document.write()"


Previous Home Next
Document.bgColor Book Index Document.close()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/JAVA/script/definitive/refp_77.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/11/25 18:00,
TOP NEW HELP FIND: 
3.12.34.209: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/language/JAVA/script/definitive/refp_77.htm"> [Chapter 21] Reference: Document.clear()</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .