Page 1 of 1

A lil help with popup

Posted: Thu Feb 05, 2004 7:19 pm
by John Cartwright
This is bugging me real bad guys... I know its osmething so stupid

Code: Select all

<a href="javascript:void(0)" onClick="javascript:window.open('news.php','myNews','width=500','height=500','scrollbars=1');">
The scrollbar isnt showing up :S

I tried setting it to everything possible... 1,0,yes, etc

Help? ty

Posted: Thu Feb 05, 2004 8:19 pm
by Straterra
I always use this function for popups

Code: Select all

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
&#123;
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
 href=mylink;
else
 href=mylink.href;
newwindow=window.open(href, windowname, 'width=400,height=100,scrollbars=no,toolbar=no,status=no,resizable=yes');
return false;
&#125;
//-->
</SCRIPT>
<BODY onLoad="popup(url, 'popupwindowname')">