I've noticed that this is possible in IE:
<span class='sweetfea ture' myproperty='Nap oleon Dynamite'
onclick="ShowPr operty(this);" >
Click here for the name of a hilarious movie.
</span>
and then in a script:
function ShowProperty(e) {
alert(e.myprope rty);
// or
// alert(e['myproperty']);
}
Is there a counterpart functionality in Firefox, NS, and Opera, or is this a
proprietary MSFT feature that the other browser vendors do not support?
Thanks
TR
<span class='sweetfea ture' myproperty='Nap oleon Dynamite'
onclick="ShowPr operty(this);" >
Click here for the name of a hilarious movie.
</span>
and then in a script:
function ShowProperty(e) {
alert(e.myprope rty);
// or
// alert(e['myproperty']);
}
Is there a counterpart functionality in Firefox, NS, and Opera, or is this a
proprietary MSFT feature that the other browser vendors do not support?
Thanks
TR
Comment