I have the following html code
<a href="javascript:update(this)">Val1</a>
<a href="javascript:update(this)">Val2</a>
And the function
function update(obj) {
alert(obj); // I expect to get a tag object but I am getting Window Object
//do something
}
Now I would expect to get object referring to a tag, but I get Window Object. Can some one tell me why object referring to a tag is not passed