Pop-up
Nick Maaß
- html
0 tschak
Hallo,
iwe kann ich beim aufrufen meiner seite,zusätzlich noch einen pop-up erscheinen?
<!-- TWO STEPS TO INSTALL CUSTOMIZED POPUP:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- 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>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<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>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>