EvilPenguin
10-22-2005, 07:01 AM
Hi,
I have seen some code around the place using the 'this' object differently to what I've seen in tutorials/references around the place.
I've read that 'this' points to the current window object, but I've also seen people doing this:
<input type="input" name="foo" onchange="setValue(this);">
Is this correct? When used in that context does the this object point at the input 'foo'?
I have seen some code around the place using the 'this' object differently to what I've seen in tutorials/references around the place.
I've read that 'this' points to the current window object, but I've also seen people doing this:
<input type="input" name="foo" onchange="setValue(this);">
Is this correct? When used in that context does the this object point at the input 'foo'?