Discussion Locked

Java Script (Help!!)

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have made a website using frames and have a dropdown navigation menu on the left hand side. How do I get the menu items to open up in the main page of my frames? Do I need to add a special line in the menu script for this to work? I have tryed different approaches and nothing has worked so far. I am new to Java Script and am getting frustrated. You are my last resort for help. Your assistance will be greatly appreciated.

Frustrated.

2 replies

by jay eckles

Undoubtedly somewhere in your script you're making an assignment to location.href. In order to make that action load the URL in antoher frame, you need to identify that frame. Say the name of the frame is "main", then in the other frame where yourmenu is located, try
parent.main.location.href = [url] ;

There's a very good FAQ located here:
http://developer.irt.org/script/frame.htm

Jay
www.jayeckles.com

by mgarcia3

Want to make a popup window that when you click the link in the new popup window ("child"), it will update the page that launched it("parent") I used: in the parent window. After clicking on the link and it updates the "parent" window, the "child" window should close out. Have script that works fine in IE, but will not function with Netscape 6.2. Netscape closes the child window without updating the parent w/new page as in IE. Example of current popup is at http://www.endoscopy.com/index2.htm

This discussion is closed to new replies.