Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   Clear a document? (http://www.velocityreviews.com/forums/t880948-clear-a-document.html)

Alan Fiddis 12-05-2004 06:10 PM

Clear a document?
 
Just a quick question folks - is it possible
to clear a document, frame or iframe
of its entire contents? I know there's
document.clear(), but it doesn't seem to
do anything. :-(



Evertjan. 12-05-2004 08:05 PM

Re: Clear a document?
 
Alan Fiddis wrote on 05 dec 2004 in comp.lang.javascript:

> Just a quick question folks - is it possible
> to clear a document, frame or iframe
> of its entire contents? I know there's
> document.clear(), but it doesn't seem to
> do anything. :-(


Do a document.write('empty, haha!') after the page is displayed.
You will lose even all javascript after that.

RobB 12-06-2004 05:46 AM

Re: Clear a document?
 
"Alan Fiddis" <AlanFiddis@Yahoo.co.uk> wrote in message news:<31h18sF3b0uh3U1@individual.net>...
> Just a quick question folks - is it possible
> to clear a document, frame or iframe
> of its entire contents? I know there's
> document.clear(), but it doesn't seem to
> do anything. :-(


[windowRef/frameRef].location = 'about:blank'


All times are GMT. The time now is 09:19 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57