Click to See Complete Forum and Search --> : questions on code


rharmer
09-30-2003, 03:38 PM
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var i;
i=1;

for(i=1;i<2;i++)
{

window.open('construction.htm','640x480','toolbar=no,status=no,location=no,menubar=no,directories=no ,width=640,height=480,top=100,left=180')

}
// End -->
</script>

1. can you alter the code to automatically center the opened window both horizontally and vertically?
2. can you turn off the internet explorer blue bar that appears at the top of the opened window?
3. can someone explain the variable coding found in this script and what it does?...a mate give me this code and i would like to know the code i'm working with.

ZooTek
09-30-2003, 05:17 PM
the first part of your code does nothing at all, I have no idea why it is there. The part that actually does something is the
window.open('construction.htm','640x480','toolbar=no,status=no,location=no,menubar=no,directories=no ,width=640,height=480,top=100,left=180')

try this page it should create just about any kind of popup you need. popup maker (http://www.cgiscript.net/cgi-script/csNews/csNews.cgi?database=js_windows%2edb&command=viewone&id=38&op=t)