![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
1) I want to test for the existence of a method o.m(), so I tried the line if (o.m) ... but the interpreter objects to the missing parentheses on m. (This is in IE.) What is an appropriate approach for checking the existing of a function? |
|
2) I've got the following code window.onresize = function { ... f(); } function f() { ... } BODY onload="f();" |
|
My question: if the resize event happens while f is executing, is the first call to f (onload) flushed from the stack? If not, where in f is execution resumed after the second call to f takes place in response to the resize event? |
![]() |
| Thread Tools | |
| Display Modes | |
| |