java script links

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
brrobin1
Beginner
Beginner
Posts: 9
Joined: Fri Jan 03, 2003 9:16 pm

java script links

Post by brrobin1 »

Is it possible to use javascript to pop open new windows in this menu? When I try it won't keep the sub menu open (if I'm quick enough I can click it befor it disapears)
ex from html head portion:

Code: Select all

<SCRIPT language="JavaScript">
<!-- 
function netscape() 
{
	mapWindow = window.open('http://www.server.com/netscape_users.html','browser','width=700,height=500,resizable=yes,scrollbars=yes,status=yes')
}
function win(i)  {  
	mapWindow = window.open(i,'nfWIN', 'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=400,left=10,top=10');  
	mapWindow.focus();
				 }  

//--> 
</SCRIPT> 
and then the array call to it

Code: Select all

	addmenu(menu=["test",
	,,150,0,"",style2,,"left",effect,,,,,,,,,"images/bk.gif",,,
	,"Log&nbsp;On","javascript:win('http://www.server.com/logon.html');",,,1
	,"No&nbsp;Frame&nbsp;Log&nbsp;On","javascript:win('http://www.server.com/Nlogon.html');",,,1
	])
brrobin1
Beginner
Beginner
Posts: 9
Joined: Fri Jan 03, 2003 9:16 pm

Post by brrobin1 »

Sorry I'm an idiot I found the answer
here. I just had to replace my 's with \"s.
Post Reply