Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q163 How can I make a frame pop in on a button click and pop out on a different button click?

irt.org | Knowledge Base | JavaScript | Frame | Q163 [ previous next ]

Q163 How can I make a frame pop in on a button click and pop out on a different button click?

Say you have a frameset document frame.html as follows:

<frameset cols="50%,50%">
<frame src="apage.html" name="left">
<frame src="bpage.html" name="right">
</frameset>

Now a form in apage.html can make bpage.html enlarged using:

<form>
<input type="button" onClick="top.location.href=parent.right.location.href" value="Kill Frame">
</form>

A form in bpage.html can frame the page with:

<form>
<input type="button" onClick="top.location.href='frame.html'" value="Frame Me">
</form>

Feedback on 'Q163 How can I make a frame pop in on a button click and pop out on a different button click?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.