I have created three frames. The three frames are named Menu, Body and Header.
In my menu frame I have a menu. When I click on an item I want to display a specfied URL into the Body Frame... How can I do this using javascript?
Printable View
I have created three frames. The three frames are named Menu, Body and Header.
In my menu frame I have a menu. When I click on an item I want to display a specfied URL into the Body Frame... How can I do this using javascript?
i think it goes something like this...
parent.body.location=URL
again, im not too sure.
also, its not wise to name anything with keywords
Quote:
Originally posted by JohnSmith
I have created three frames. The three frames are named Menu, Body and Header.
In my menu frame I have a menu. When I click on an item I want to display a specfied URL into the Body Frame... How can I do this using javascript?
The other way is to:Code:<a href="#" onClick="javascript:parent.body.location = 'http://www.vbforums.com';">Click here</a>
Code:<a href="http://www.vbforums.com/" target="body">
Yeah like mendhak said you should use target if you can use plain html (taget) as not everyone has JS enabled (10-15% apparently)
hmm..... *goes off a bridge*, maybe someone will copy me again...
Huh? :confused:
He's mad because I 'copied' him.
Oh, but not really, you explained it more.:p