Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to assign a page to a frame

Status
Not open for further replies.

wf

Programmer
Feb 1, 2001
32
US
I want to assign a zzz.htm to a frame when my page loads. I know how to do it in a link but that's not what I want.

Thanks for any help...
 
Hello,
I guessed following.

Scenario:
I have a page that holds 2 frames - left.htm and content.htm, named accordingly left and contents.
Then from some of link in left.htm in place of content.htm comes yyy.htm for which the left frame needs to be zzz.htm (not original left.htm).

The code:
in file yyy.htm
<body onload=&quot;parent.left.location='zzz.htm'&quot;>
The event you need is onload.
The way of accessing frames is according DOM (document object model).

Hope this helps.
D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top