Click to See Complete Forum and Search --> : non reseizable browser window
HotteKiessling
07-16-2003, 07:07 PM
Hi there
I'm trying to create a html document at 800x600, that loads into a non rezeisale browser window.
Any Ideas?
thx
kdcgrohl
07-16-2003, 07:30 PM
you could use window.open to create a new window with resizing turned off, or you could have the window resize itself upon resize.
HotteKiessling
07-16-2003, 07:37 PM
I'm not to familiar with scripting.
Can you suggest a code I can copy and paste?
thx
sencinias
07-17-2003, 08:01 AM
You can use the following, for 800 X 600 and it should center it on the screen.
window.open("http://yourwebsite",'window1','toolbars=0,statusbar=1,menubar=0,scrollbars=1,resizable=0,width=750,height=410,left = 162,top = 34');
I use it in several apps right now with this and it works pretty well. The link above will also not display toolbars or menubars for the users, you can easily change them to 1 to have them display though.
Hope this helps.
Try this to center on any resolution: http://www.infinitypages.com/research/centeredpopup.htm
You could also use something like this, if you don't want to open a new window:
<script type="text/javascript">
function resizeBack() {
window.resizeTo(800, 600);
}
window.onresize = resizeBack;
</script>