Posted by Toby Inkster on 10/19/61 11:48
Spartanicus wrote:
> How do I prevent this from executing twice when the window is resized:
>
> window.onresize = function () {
> alert('foo');
> }
function nullfunc () { var x = 1; }
function myOnResize ()
{
alert('foo');
window.onresize = nullfunc;
window.setTimeout('window.onresize = myOnResize;', 1000)
}
or something to that effect.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Navigation:
[Reply to this message]
|