View Full Version : HV Menu with Javascript

09-27-2005, 05:58 PM
I am having problems getting my window to open using javascript with the HV Menu. I keep getting a javascript expected ";" error. I have tried everything I can think of. Can anyone let me know what I'm missing? The normal link works in as a regular link on the page, but I can't seem to get it to work in the HV Menu.
This is the Menu item:

Menu5=new Array("NextWheels Online","javascript:{void(0); OnClick='window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm';'miniwin';'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0, resizable=0, width=789, height=569,top=0,left=0';)';} ","",0,30,100);

This is what it looks like as a normal link on the page.

<p align="center"><a href="javascript:void(0)" onClick="window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=789,height=569,top=0,left=0')">
<strong><font size="3" face="Verdana, Arial, Helvetica, sans-serif"><em>*Your NextWheels Online*</em> </font></strong></a></p>

09-27-2005, 09:56 PM
Menu5=new Array("NextWheels Online","javascript:window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm';'miniwin';'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0, resizable=0, width=789, height=569,top=0,left=0')","",0,30,100);

09-29-2005, 02:50 PM
John Thank you for your reply.

I'm still getting the - Error:Expected ')' Any other suggests?


09-29-2005, 03:11 PM
Ooops, that's what I get for copying your work and not looking closely enough at it or testing it after I 'fixed' it. This works fine here:

Menu5=new Array("NextWheels Online","javascript:window.open('http://www.autowaretech7.net/nextwheels/victory_intro.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0, resizable=0, width=789, height=569,top=0,left=0')","",0,30,100);

09-29-2005, 06:08 PM
John Thank you Thank you Thank you