links and targets

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
evasjam
Beginner
Beginner
Posts: 3
Joined: Fri Jun 14, 2002 2:35 pm
Contact:

links and targets

Post by evasjam »

:?: 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

:cry:
Does anybody have an idea?
thanx a lot,
Irmgard/b]
Post Reply