JavaScripts -> Fenster -> Popup-Fenster zentriert öffnen
Mit diesem kleinen Script können Sie bewirken, dass sich ein Popup-Fenster in der Mitte des Bildschirmes öffnet.
Kompatibilität getestet:
Script-Code
<script type="text/javascript">
<!--
//OpenCenter v1.0 (c) 2003 Triple-M / http://www.htmlarsenal.de
//Benutzung: <a href="javascript:opencenter(Adresse,Breite,Höhe)">...</a>
//Usage: <a href="javascript:opencenter(Address,Width,Height)">...</a>
function opencenter(url,width,height) {
w=screen.availWidth;
h=screen.availHeight;
window.open(url,'_blank','width='+parseInt(width)+', height='+parseInt(height)+', top='+Math.floor((h-parseInt(height))/2)+', left='+Math.floor((w-parseInt(width))/2));
}
//-->
</script>
<!--
//OpenCenter v1.0 (c) 2003 Triple-M / http://www.htmlarsenal.de
//Benutzung: <a href="javascript:opencenter(Adresse,Breite,Höhe)">...</a>
//Usage: <a href="javascript:opencenter(Address,Width,Height)">...</a>
function opencenter(url,width,height) {
w=screen.availWidth;
h=screen.availHeight;
window.open(url,'_blank','width='+parseInt(width)+', height='+parseInt(height)+', top='+Math.floor((h-parseInt(height))/2)+', left='+Math.floor((w-parseInt(width))/2));
}
//-->
</script>