Customized Popup Window

[Total: 0    Average: 0/5]

Allow your visitors to have a popup page on your site appear exactly as they want!

Head Code:

<!-- Begin
function popupPage(l, t, w, h) {
var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

var URL = "";
popup =,"MenuPopup",windowprops);
//  End -->

Body Code:


<form name=popupform>
Customize Your Popup Window!<br>
Distance from left edge:  <input type=text name=left size=2 maxlength=4> pixels
Distance from top edge:   <input type=text name=top size=2 maxlength=4> pixels

Width of popup window:    <input type=text name=width size=2 maxlength=4> pixels
Height of popup window:   <input type=text name=height size=2 maxlength=4> pixels
<input type=button value="Open the Popup!" onClick="popupPage(this.form.left.value,, this.form.width.value, this.form.height.value)">


Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *