Home › Forums › JavaScript › $(this) from within a seperately called function › Re: $(this) from within a seperately called function
January 17, 2013 at 3:50 pm
#121297
__
Participant
Well, functions in javascript *are* objects, so `this` “bubbles (that’s not really the right term) up” to the context the function has inherited from its parent – and, since you’ve declared your function globally, the “parent” is the `Window` object.
…and, no problem, glad you got it figured.