Menu
If I create an object and create a property “alerter” and set that equal to a function, is there any way to get that my function was called from a property named alerter?
EXAMPLE:
[CODE]
function func()
{
//how would I alert the property this function is attached to?
alert( “Called by: ” + ??? );
}
document.getElementById( “something” ).alerter = func;
document.getElementById( “somethingelse” ).anotherProp = func;
how would I do this?