auto åben popup
HejHar set lidt på den her popup genrator på: http://javascript.internet.com/generators/popup-window.html
Hvis vi tager udgangspunkt i det her eks:
<!-- TWO STEPS TO INSTALL POPUP WINDOW:
1. Paste the first into the HEAD of your HTML document
2. Use the code to open the popup page on your site -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=1280,height=1024,left = 0,top = 0');");
}
// End -->
</script>
<!-- STEP TWO: Paste this onLoad event handler into the BODY tag -->
<BODY onLoad="java script:popUp('https://XXX')">
<!-- Script Size: 0.73 KB -->
Der åbner den popup windows automatisk når man går ind på siden. Men kan man ikke placere det et andet sted end <body> ? altså nede midt på siden?