Hi, I'm trying to achieve the effect that most browsers except for Safari removed.
I'm trying to grab the actual text node when a user click on a text inside an html page.
function getNode(ev)
{
//When a user clicks on a text, IE and FF will print out '1', while it's supposed to be '3'.
alert(ev.target.nodeType);
}
Is there anyway to do this? Thanks so much.
I'm trying to grab the actual text node when a user click on a text inside an html page.
function getNode(ev)
{
//When a user clicks on a text, IE and FF will print out '1', while it's supposed to be '3'.
alert(ev.target.nodeType);
}
Is there anyway to do this? Thanks so much.