![]() |
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. :-( |
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. |
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.