CoderZone.org

Category: >> JavaScript >> Clear screen Bookmark and Share

<< lastnext >>

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)

Author: CoderZone
Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 28th, 2009

document.getElementsByTagName('HTML')[0].innerHTML="";
 
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© coderzone.org | users online: 10