ShadowOfTheRing
01-17-2003, 06:21 PM
Hi, I'm somewhat new to writing JS, so any help would be appreciated.
I'm trying to get a page to resize itself (no problem) and hide the address bar, toolbar, status bar when it loads.
I used this code to resize the window upon loading:
<html>
<head>
<title>whatever</title>
</head>
<body onload="resize()">
<script>function resize(){
window.moveTo(0,0)
window.resizeTo(440,400)
}
</script>
</body>
</html>
But I can't find a way to remove the toolbars etc. from the window without generating the window from another page. I just want it to remove them when it loads. I searched all the references I could find, and all the tutorials on JavaScriptKit.
Any ideas?
Thanks in advance
I'm trying to get a page to resize itself (no problem) and hide the address bar, toolbar, status bar when it loads.
I used this code to resize the window upon loading:
<html>
<head>
<title>whatever</title>
</head>
<body onload="resize()">
<script>function resize(){
window.moveTo(0,0)
window.resizeTo(440,400)
}
</script>
</body>
</html>
But I can't find a way to remove the toolbars etc. from the window without generating the window from another page. I just want it to remove them when it loads. I searched all the references I could find, and all the tutorials on JavaScriptKit.
Any ideas?
Thanks in advance