Get running object name
Hi
Is it possible to get running object name using a command that defined in same object?
Hi
Is it possible to get running object name using a command that defined in same object?
Code:
<script>
var test = function()
{
this.find = function()
{
alert('How can i know that this object is running as "a" variable?');
}
}
</script>
<script>
var a = new test();
a.find(); // Need solution for returning "a"
</script>
Comment