I am looking for a way to prevent JavaScript on a webpage from resizing and repositioning my Internet Explorer window.
This option is available in Firefox, but I can't find anything similar in Internet Explorer:
I am using Internet Explorer 7 in Windows XP SP3.
For what it's worth, the script doing the resizing is:
<script language="JavaScript">
function getFocus(){
document.frmLogin.txtUsername.focus();
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
}
window.onload = getFocus;
</script>
and this script seems to not resize the window with Internet Explorer 8, but upgrading is not currently an option (work computer).
Best Answer
I emailed the Internet Explorer team at the IEBlog and received the following response: