-
With Javascript can I change the size of the browser that I have open? If so How?
Eric
-
yes you can.
<head>
<script language="javascript" type="text/javascript">
<!--
function resize(){
x = your width
y = your height
self.resizeTo(x, y)
}
//-->
</script>
</head>
<body onload="resize()">
you might want to use the moveTo (0,0)
to place it where you want it on the page.
-
If your referring to a popup window use the following:
on (release) {
getURL("javascript:window.open('http://your.com/example.swf','name','width=650,height=250,top=200, left=200'); void(0);");
}
If you want to get an existing browser window to open to a particular size use the onLoad() function.
Cheers,
micmac
-
How do I call this function as the page loads.
This will not be a popup.
Thanks for the help!
-
<body onload="resize()" >
-
Thanks that worked great. Now I am trying to remove the status bar.
I am trying this code and just get an error.
window.statusbar.visible = false;
Any Help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|