|
-
May 17th, 2002, 04:31 AM
#1
Thread Starter
Fanatic Member
Navigating with frames.
My left frame has all the urls. When I click on it, I like the right frame to navigate to that site.
I did this before but forgot how to do it off the top of my head. It is something
javascript:window
Anyway, hope someone can help.
Thanks
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
May 17th, 2002, 04:53 AM
#2
in the frameset, give the right frame a name (name="maincontent")
in the navigation-file use the following in your HREF tag: target=maincontent (frame names are case sensitive)
if you want to you can post this in your HEAD area: <base target=maincontent> so you don't have to use target=maincontent in every link
hope that helps
-
May 17th, 2002, 11:29 AM
#3
Thread Starter
Fanatic Member
Thanks for your solution.
Also, instead of using the anchor tag, how would I do it with a button?
Thanks
Last edited by Hawk; May 17th, 2002 at 11:39 AM.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
May 17th, 2002, 01:03 PM
#4
parent.frames.yourframename.document.location='yourfile'
should do the job
-
May 17th, 2002, 01:12 PM
#5
Thread Starter
Fanatic Member
That goes into the Onclick event of the submit button right?
Thanks Quentin!
Bird of Prey
Mr. Bald Eagle.
[img][/img]
-
May 17th, 2002, 01:15 PM
#6
np 
right, you can also put it in a function so you just have to say onclick="myFunction('file.html')"
just for code optimizing
-
May 17th, 2002, 01:21 PM
#7
Thread Starter
Fanatic Member
I like the method you showed for the anchor tag but I guess that can't be done with a button.
Quentin, thanks for your dedication to this thread. You enlightend the solution for me. Have a nice day.
Bird of Prey
Mr. Bald Eagle.
[img][/img]
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
|