A lil help with popup

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

A lil help with popup

Post 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
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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')">
Post Reply