popup Window within Page

admin

Administrator
Staff member
I cannot seem to get this script to work properly. It opens a full window rather than one is say, 400x400px. What have I done wrong?

Onclick page:

<p><a href=http://www.webdeveloper.com/forum/archive/index.php/"extra_designs" onClick="return popitup('extra_designs.html')"

Popup Window:

<html><head><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function popitup(url)
{
newwindow=window.open(url,'name','height=400,width=400');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</SCRIPT>
</head><Body><table summary="0" width="400" height="400" cellspacing="0" cellpadding="0">
<tr><td valign="top"><p class="mten"><b>Extra Designs</b></p>
<p class="mten"><font size="2">Give yourself the added flexibility of an extra design being developed in the production of your website, both custom designs are presented to you for review and you can then choose the design that you prefer, or you can have one design presented and offer one round of revisions before that design is used on your custom site. You may purchase as many extra designs as you like.</font></p>
</BODY></td></tr></table></body></html>



Thanks in advance.

Joe Allard
 
Top