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:

<SCRIPT LANGUAGE="JavaScript">
<!-- 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 = "http://www.yahoo.com";
popup = window.open(URL,"MenuPopup",windowprops);
}
//  End -->
</script>

Body Code:

<center>
<table>
<tr>

<td>
<form name=popupform>
<pre>
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
</pre>
<center>
<input type=button value="Open the Popup!" onClick="popupPage(this.form.left.value, this.form.top.value, this.form.width.value, this.form.height.value)">
</center>
</form>
</td>

</tr>
</table>
</center>

Times Viewed: 0

Leave a Reply

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