Does anyone know of a script that will resize a browser? Example, A visitor goes to a page on my site, and then his window is automatically resized to a 350x400 window, with no scrollbars, and status bar.
Please help, I've been searching the new all day for this.
I would try using something like (and this is off the top of my head, more or less, so you will need to work out the details):
In the header:
<script language=JavaScript>
<!--
function resized_screen (URL) {
var desiredWidth = 350;
var desiredHeight = 400;
if (screen.width == desiredWidth && screen.height == desiredHeight) {
return;
}
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + desiredWidth + ",height=" + desiredHeight + "');");
}
// -->
</script>
Then in the body tag:
<body ... onLoad=resized_screen(window.location.href)>
You can turn the toobar, etc., on or off by using 1 or 0, respectively.
For some reason, it open like 10 small pop-op windows, and doesn't resize the original browser window. Go ahead and try it and see for yourself. I appreciate the help.
Thank you Dr. Mike. The tools bars, and status bar, etc. don't go away, but I went to some other forums, and they said that you can't make them go away.
Bookmarks