[thelist] JS window opening; IE size problem
aardvark
roselli at earthlink.net
Fri Nov 17 11:08:43 CST 2000
ok, it's an intranet, so no whining...
i have JS (see below) that tells the browser to open a new window
to a particular size, however, IE opens it so that the inner size
(inside the chrome) is that size, making the entire browser window
larger than i want... i need a fix, and my JS (especially with IE-
specific crap) is not so sharp... targetting IE4+...
<SCRIPT LANGUAGE = "JavaScript">
<!--
window.name="parentWin";
// open new window
function openWin(file, name) {
popupWin = window.open(file, name,
'scrollbars,resizable,status=0,width=800,height=600');
// focus window (only for > Navigator 3.0)
if ( (navigator.appName != "Microsoft Internet Explorer") &&
(navigator.appVersion.substring(0,1) == "3") )
popupWin.focus();
}
// done hiding -->
</SCRIPT>
...
<a href="javascript:openWin('index.html', 'AdminWin');">New
Window, baby.</a>
More information about the thelist
mailing list