Click to See Complete Forum and Search --> : javascript:top.document.location.href='http://www.altavista.com' Question


Sinnah
11-22-2002, 01:31 AM
Hello all, I'm new here :)

I have a question, I'm working on a menu for my website, but I can't figure something out.

As you can see, the code below is a submenu item, with a text wich links to Altavista.

The page where I'm working on is in two frames (two cols)
But the code in red loads the "forgein" page in _self without frames.

When I delete the top the page will loads in the left frame, I want the page to be loaded in the mainFrame, but somehow I can't figure this out.

// This is the frameset:

<frameset rows="*" cols="*,868" framespacing="0" frameborder="NO" border="0">
<frame src="left.html" name="leftFrame">
<frame src="rechts.html" name="mainFrame" scrolling="NO" noresize>
</frameset>



Menu12_1=new Array("Altavista","javascript:top.document.location.href='http://www.altavista.com'","",0,20,150);

gil davis
11-22-2002, 05:44 AM
Originally posted by Sinnah
I want the page to be loaded in the mainFrame, but somehow I can't figure this out.

Menu12_1=new Array("Altavista","javascript:top.document.location.href='http://www.altavista.com'","",0,20,150);

Menu12_1=new Array("Altavista","javascript:window.top.mainFrame.location.href='http://www.altavista.com'","",0,20,150);

Sinnah
11-27-2002, 03:28 AM
Thank you very much :)