IE window.resize how to stop resizing it?
<p>I recently write a window.resize in javascript for resizing the browser window for certain conditions.e.g. start with vertical resolution 900 keep resizing the browser window until height become 400 then stop resizing. But browser window keep resizing as I clear the handler for it.
Is there any way to just stop browser resizing after some limit?</p>

<pre><code>    //here is the sample code
Sys.Application.add_load(function(sender, args) {
    $addHandler(window, 'resize', window_resize);
});

var resizeTimeoutId;
var initWdth = (document.body.clientWidth - 200);

function window_resize(e) {
    window.clearTimeout(resizeTimeoutId);
    resizeTimeoutId = window.setTimeout(function() {
        if (screen.height &gt;= 768 &amp;&amp; initWdth &lt;= (document.body.clientWidth - 200)) {
            document.body.scroll = "no";
            //code here
            //Enter if window maximized 
            //working fine.
        }
        else {
            document.body.scroll = "yes";
            if (document.documentElement.clientHeight &gt;= 400) {
                //mean 400 is our limit

            }
            else {
                //Now stop resizing everything //Div's table etc
                //browser window should stop resizing.
                //$clearhandler(window, 'resize', window_resize); worked but browser window can't stop resizing 
                //after clearing the handler resize event not working but browser window keep resizing.
            }
        }
    }, 10);
}
</code></pre>

<p>Thanks</p>
