Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1703 How can I clear the contents of one frame from another?

You are here: irt.org | FAQ | JavaScript | Frame | Q1703 [ previous next ]

Try either:

<form>
<input type="button" value="Clear" onClick="parent.otherFrameName.location.href='about:blank'">
</form>

or:

<form>
<input type="button" value="Clear" onClick="parent.otherFrameName.open();parent.otherFrameName.document.write('');parent.otherFrameName.close();'">
</form>

©2018 Martin Webb