PavelGur
Programmer
- Sep 21, 2001
- 75
I'm using the function I found on Microsoft site to resize the browser window. The function looks like this:
<script language="JavaScript">
window.onload = maxWindow;
function maxWindow()
{
window.moveTo(0,0);
if (document.all)
{
<!-- I changed the following to constant sizes -->
top.window.resizeTo(630,700);
// top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById)
{
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}
It works fine with one htm file. However with another that works well w/o this function I'm getting the security warning: "To help protect your security, Internet Explorer had restricted from showing active content that could access your computer. Click here for options...".
Does anybody know what is the problem?
Thanks, Pavel.
<script language="JavaScript">
window.onload = maxWindow;
function maxWindow()
{
window.moveTo(0,0);
if (document.all)
{
<!-- I changed the following to constant sizes -->
top.window.resizeTo(630,700);
// top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById)
{
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth)
{
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}
It works fine with one htm file. However with another that works well w/o this function I'm getting the security warning: "To help protect your security, Internet Explorer had restricted from showing active content that could access your computer. Click here for options...".
Does anybody know what is the problem?
Thanks, Pavel.