|
Hi
I already have stacks of javascript code that creates pop up menu layers.
My question is can i incorporate the open new window script so that in my pop up menu some of the links open a new window without scroll bars etc
Usually i would use
onClick="window.open('/forum/Speakeasy.htm', Speakeasy', 'status=no, scrollbars=yes, toolbar=no, width=800, height=500')"
However within my menu code for the pop up it gives anerror & iam not sure why
menu1[3]='<a href="/forum/Speakeasy.htm" target="_blank">Speakeasy</a>'
this works
menu1[3]='<a href="/forum/Speakeasy.htm" onClick="window.open('/forum/Speakeasy.htm', Speakeasy', 'status=no, scrollbars=yes, toolbar=no, width=800, height=500')">Speakeasy</a>'
Is it because there is code elsewhere that conflicts with this ?
The original link that opens the menu looks like this.
<a href="/forum//Monday.htm" onClick="return clickreturnvalue()"
onMouseOver="dropdownmenu(this, event, menu1, '150px')" onMouseOut="delayhidemenu()">MONDAY</a>
Then the sub menu si generated by menu code like this
var menu1=new Array()
menu1[3]='<a href="/forum/Speakeasy.htm" target="_blank">Speakeasy</a>'
Any ideas ?
|
|
|
Hi
Use this code.
var s1 = "javascript:window.open('/forum/Speakeasy.htm', 'Speakeasy', 'status=no, scrollbars=yes, toolbar=no, width=800, height=500')";
var menu[3]='<a href="'+s1+'" >Speakeasy</a>';
John
http://www.programminghelp4u.com ( Assignment / Project ) Help
|
|
|
|
|
|
|
|