CrUdE
02-01-2003, 07:52 PM
yo peeps,
i allready used following code to open a link in a new window with specifications , but how can i use it , that when my index.htm loads, a new window pops up with the site in it.
A fixed 800*600 window.
What do i need to enter in the body tag???
this is the JS i used:
<script language="javascript">
function newWindow(url,w,h,l,t)
{
var now, title, top, left, options
now = null;
title="info";
top=(screen.availHeight - h)/4;
left= (screen.availWidth - w)/6;
if (top < 0) {top = 0;}
if (left < 0){left = 0;}
options = "width="+ w + ",height="+ h +",left="+ left +",top="+top+",location=no,scrollbars=no,directories=no,status=yes,menubar=no,resizeable=no";
window.open(url,title,options)
}
</script>
i allready used following code to open a link in a new window with specifications , but how can i use it , that when my index.htm loads, a new window pops up with the site in it.
A fixed 800*600 window.
What do i need to enter in the body tag???
this is the JS i used:
<script language="javascript">
function newWindow(url,w,h,l,t)
{
var now, title, top, left, options
now = null;
title="info";
top=(screen.availHeight - h)/4;
left= (screen.availWidth - w)/6;
if (top < 0) {top = 0;}
if (left < 0){left = 0;}
options = "width="+ w + ",height="+ h +",left="+ left +",top="+top+",location=no,scrollbars=no,directories=no,status=yes,menubar=no,resizeable=no";
window.open(url,title,options)
}
</script>