Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:35
links and targets
Poster: evasjam
Dated: Friday June 14 2002 - 14:54:46 BST
Hi! I would like to have clicking on a link in a submenu, the page pops up in a new window instead of in the same page. I tried to implement a function like
var newwin;
function popRemote(winurl,winname,winfeatures,opener) {
newwin = window.open(winurl,winname,winfeatures);
if (newwin.opener == null) {
newwin.opener = window;
}
newwin.opener.name = "opener";
newwin.focus();
}
and wanted to call it in this way:
addmenu(menu=["dies",
,,150,1,"",style1,,"",effect,,,,,,,,,,,,
," Links & Quellen","links.html",,"",1
," e-cards versenden","javascript:popRemote('menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400' , 'mainwindow')"ecard.html",,,1
," Screensaver downloaden","schoner.html",,,1
....
but it does not work. even target="_blank" does not work
Does anybody have an idea?
thanx a lot,
Irmgard/b]