S
Seefor
Hi, I want to resize the browser window when my web page loads (don't worry,
this is for a private site, so it's not going to piss off a lot of users).
However, the code I have resizes the window fine, but it PERMANENTLY sets
the size of the browser window, so when I open IE again, it defaults to the
size I set.
I've tried the following, but no luck:
<html>
<head>
<title>Page Title</title>
<script type="text/javascript">
<!--
var oldWidth = window.innerWidth;
var oldHeight = window.innerHeight;
function init()
{
window.resizeTo(400, 400);
}
function deinit()
{
window.resizeTo(oldWidth, oldHeight);
}
//-->
</script>
</head>
<body onLoad="init()" onunload="deinit()">
</body>
</html>
I want to TEMPORARILY change the size of the browser window for this page
only.
Is this possible?
this is for a private site, so it's not going to piss off a lot of users).
However, the code I have resizes the window fine, but it PERMANENTLY sets
the size of the browser window, so when I open IE again, it defaults to the
size I set.
I've tried the following, but no luck:
<html>
<head>
<title>Page Title</title>
<script type="text/javascript">
<!--
var oldWidth = window.innerWidth;
var oldHeight = window.innerHeight;
function init()
{
window.resizeTo(400, 400);
}
function deinit()
{
window.resizeTo(oldWidth, oldHeight);
}
//-->
</script>
</head>
<body onLoad="init()" onunload="deinit()">
</body>
</html>
I want to TEMPORARILY change the size of the browser window for this page
only.
Is this possible?