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 16:00, local time: 2024/8/23 20:23,
18.118.9.29: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://piclist.com/tecHREF/language/java/script/definitive/refp_77.htm"> [Chapter 21] Reference: Document.clear()</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.