ExtraB
29-10-2003, 13:38/01:38PM
Hello
Is it possible to use the OnLoad attribute in an html documents body tag in order to change the current browser's window?
Any idea what the code is or where I can see an example online?
I was able to do this for a popup window... here is the code
</head>
<script language="JavaScript">
<!--
function open_new_window(url)
{
new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width=780,height=500,left=25,top=25')
}
// -->
</script>
</head>
<body bgcolor="#FFFFFF" onload="javascript:window.open('testing.htm', 'newwindow', 'HEIGHT = 500, WIDTH = 780, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, left=25, top=25')">
I want to use the same settings for a browser window but I don't want to pop up a new window... I just want to have the current window resize and change its properties.
Is this possible?
How can the above code be tweeked to accomplish this?
Thanks
Eric B
Is it possible to use the OnLoad attribute in an html documents body tag in order to change the current browser's window?
Any idea what the code is or where I can see an example online?
I was able to do this for a popup window... here is the code
</head>
<script language="JavaScript">
<!--
function open_new_window(url)
{
new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width=780,height=500,left=25,top=25')
}
// -->
</script>
</head>
<body bgcolor="#FFFFFF" onload="javascript:window.open('testing.htm', 'newwindow', 'HEIGHT = 500, WIDTH = 780, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, left=25, top=25')">
I want to use the same settings for a browser window but I don't want to pop up a new window... I just want to have the current window resize and change its properties.
Is this possible?
How can the above code be tweeked to accomplish this?
Thanks
Eric B