Fleemo wrote:
Quote:
Is there any way to have a browser window resize itself when
displaying a new HTML page? |
Not anymore because many browsers now have user setting prefs that can
disallow scripters from doing that for secondary windows. For windows
not opened by javascript, you need enhanced security privileges.
I'm using the javascript below to open a
Quote:
NEW window at a certain size, but I'd prefer the page to load in the
same window, just sized differently. |
No you can not do that without enhanced security privileges.
Here's the script I'm currently
Quote:
using:
a href="#" onClick="MyWindow=window.open('THE_DOC.html','MyWi ndow','toolbar=no,location=no,directories=no,statu s=yes,menubar=no,scrollbars=yes,resizable=yes,widt h=575,height=805,left=20,top=20');
return false;" |
The requested window dimensions plus window toolbars and os-dependent
semi-permanent applications like windows taskbar will exceed the height
of the available workspace for application so the popup will never have
the requested height in a majority of cases (for users with 800x600 and
1024x768 scr. res.)
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html