Snippet Name: Clear screen
Description: Just in case someone does need code for it, here's an easy way to clear the screen.
This will of course erase all scripts as well, probably making the page useless, but replace HTML with BODY and it becomes a bit nicer to scripts. Not much though, since all elements used by the scripts would be deleted.
Comment: (none)
Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 28th, 2009
|
document.getElementsByTagName('HTML')[0].innerHTML=""; |