test: parent.frame.location.href



this is a test of opening a new page in a frame.
the button on the left will open a new page in the left frame.
[the button frame]

the javascript used in the left frame page is:
function newurl()
{
parent.frameleft.location.href="pagethree.html"
}

the button code that calls the page is this:
<form>
<input type="button" value="newurl" onclick="newurl()">
</form>

make sure to name the frameset to receive the new page:
<frame src="frame-left.html" name="frameleft">

[this name is used by the newurl function above.]




web development testing home

testing by: moshbox web design