nycguurl
10-04-2007, 09:08 PM
Hello :o
I want to use this exact popup script because I love it and i know how to use it.
(I don't want to changeto another popup script if I don't have to.)
Please can anyone tell me how to have this exact script make the popup
auto-center on everyone's screen no matter their resolution? Here is my script:
Step 1) Copy this code into the HEAD of your HTML document
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp1(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "',
'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=0,width=300,height=400,left = 362,top = 184');");
}
// End -->
</script>
Step 2) Use the following link to open the new window
<A HREF="javascript:popUp1('http://google.com')">Open</A>
I want to use this exact popup script because I love it and i know how to use it.
(I don't want to changeto another popup script if I don't have to.)
Please can anyone tell me how to have this exact script make the popup
auto-center on everyone's screen no matter their resolution? Here is my script:
Step 1) Copy this code into the HEAD of your HTML document
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp1(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "',
'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=0,width=300,height=400,left = 362,top = 184');");
}
// End -->
</script>
Step 2) Use the following link to open the new window
<A HREF="javascript:popUp1('http://google.com')">Open</A>