relyt
02-13-2003, 03:46 AM
anyone have a script that opens a link in a new window?
justame
02-13-2003, 03:48 AM
rel...
you can just a useŽ the target option in the <a href...etc tag
<a href="whatever.html" target="_new">whatever</a>
orrr...
<a href="whatever.html" target="_blank">whatever</a>
webmarkart
02-13-2003, 05:46 AM
Here is a simple popup window...
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var newWindow = null
function modifier(gotoUrl)
{
if(!newWindow || newWindow.closed)
{
newWindow = open(gotoUrl,"Name2","width=550,height=450,resizable=yes,menubar=no,scrollbars=auto,status=no,left=50,top=50");
}
else
{
newWindow.location = (gotoUrl);
newWindow.focus();
}
}
// END -->
</SCRIPT>
<A HREF="javascript:modifier('http://www.google.com')">Search Google</A>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.