|
-
Jan 16th, 2003, 10:24 PM
#1
Thread Starter
Fanatic Member
Displaying a page in 2nd frame
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?
-
Jan 17th, 2003, 07:52 AM
#2
Lively Member
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
if you choose not to decide you still have made a choice!
RUSH rocks!
-
Jan 17th, 2003, 08:17 AM
#3
Re: Displaying a page in 2nd frame
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?
Code:
<a href="#" onClick="javascript:parent.body.location = 'http://www.vbforums.com';">Click here</a>
The other way is to:
Code:
<a href="http://www.vbforums.com/" target="body">
-
Jan 17th, 2003, 03:11 PM
#4
Frenzied Member
Yeah like mendhak said you should use target if you can use plain html (taget) as not everyone has JS enabled (10-15% apparently)
-
Jan 20th, 2003, 11:03 AM
#5
Lively Member
hmm..... *goes off a bridge*, maybe someone will copy me again...
if you choose not to decide you still have made a choice!
RUSH rocks!
-
Jan 21st, 2003, 05:43 AM
#6
-
Jan 26th, 2003, 07:26 AM
#7
He's mad because I 'copied' him.
-
Jan 26th, 2003, 08:04 AM
#8
Frenzied Member
Oh, but not really, you explained it more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|