A couple language questions

Giganews Newsgroups
Subject: A couple language questions
Posted by:  Ken Kast (k…@kenkast.com)
Date: Thu, 3 Jul 2003

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

2) I've got the following code
window.onresize = function {
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