F
FrankIsHere
This should attach the event to the onresize of the window object, but
when I try to resize the browser after executing the page it does not
work... only after I refresh the page. But then of course that's after
the HTTP request. Here is the code:
<HTML>
<HEAD>
<script language="javascript">
function Loadit() {
var oHTTP = new ActiveXObject("Microsoft.XMLHTTP");
var sURL = "http://tempuri.org";
var sHttpMethod = "GET";
oHTTP.Open(sHttpMethod, sURL, false);
oHTTP.Send();
document.write("\<body onresize=\"alert('resize test
1');\"\>\</body\>\</html\>");
}
</script>
</HEAD>
<BODY onload="Loadit()" >
</BODY>
</HTML>
I even tried it by triggering this script right before the body end:
<script>window.attachEvent("onresize", alert('resize test 2'))</script>
How do I make the onresize statement execute?! Is this a bug? I'm
using IE 6
Thanks!
when I try to resize the browser after executing the page it does not
work... only after I refresh the page. But then of course that's after
the HTTP request. Here is the code:
<HTML>
<HEAD>
<script language="javascript">
function Loadit() {
var oHTTP = new ActiveXObject("Microsoft.XMLHTTP");
var sURL = "http://tempuri.org";
var sHttpMethod = "GET";
oHTTP.Open(sHttpMethod, sURL, false);
oHTTP.Send();
document.write("\<body onresize=\"alert('resize test
1');\"\>\</body\>\</html\>");
}
</script>
</HEAD>
<BODY onload="Loadit()" >
</BODY>
</HTML>
I even tried it by triggering this script right before the body end:
<script>window.attachEvent("onresize", alert('resize test 2'))</script>
How do I make the onresize statement execute?! Is this a bug? I'm
using IE 6
Thanks!