PDA

View Full Version : New issue with HV Menu and iFrame



metalhaze
04-16-2007, 03:53 PM
1) Script Title: HV Menu v5.5

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm

3) Describe problem: Once I click on a link in my drop downlist and load a page into my iFrame with this code:

Menu1_1=new Array("Interoperability","javascript:main.document.location.href='http://mylink';","",0,20,150);

It will not let me load another page into the iframe that I titled "main" I get an error. Do I have to "unload" or clear this area before linking another page to the iframe window?

metalhaze
04-16-2007, 05:53 PM
Nevermind, I also fixed this problem with this code:

javascript:window.top.main.location.href=

instead of:

main.document.location.href

Main is the name of my iframe