View Full Version : linking with javascript and frames?

06-17-2004, 06:28 AM
Hey Everyone

I am very new to javascript, and I got my menu bar code from a source site. My website uses frames, and I dont know what the link tag is in javascript to open a page into a different frame.... Anyone know how to do this? I have the URL to the page, so you can look at my html.

....maybe this post belongs in the dynamic drive board.......sorry about that


06-17-2004, 08:58 AM
One way to do this is with the window.open("url", "name", "features") were the name tag is almost exactly like the target property in a tags (links). An example in use could be:
window.open("http://google.com/", "mainframe", "")
opening google in the frame titled mainframe (if it exists)

06-18-2004, 12:52 AM
ok, once again, I have no clue what I am doing with Javascript....lol :( So could someone take a look at my code and tell me where to stick what? :thumbsup:

06-18-2004, 09:45 AM
Your site seems to work fine. I need to know on where u need this, and how exactly you want it to perform.

06-18-2004, 06:29 PM
BTW- thats only part of the site (the top frame), but what I need is the nav bar drop downs to open a page in another frame when clicked. I will throw together an example of the frames so you can see the two together.