|
|
Q536 How does a function know which object called it?
irt.org | Knowledge Base | JavaScript | Misc | Q536 [ previous next ] Q536 How does a function know which object called it?A function can find out which function called it using the caller property:
A function can be easily passed the object in question using "this":
|
-- div -->
|