Hi all,
Without looping through all elements of a tagname or classname, can I simply define a javascript function as an attribute of a style class or an element?
For example, I tried the below and it doesn't work but I'm wondering if it *could* work but I've just got the syntax wrong:
Thanks,
--Jim
Without looping through all elements of a tagname or classname, can I simply define a javascript function as an attribute of a style class or an element?
For example, I tried the below and it doesn't work but I'm wondering if it *could* work but I've just got the syntax wrong:
Code:
<style>
INPUT {
background-color:#000000;
onclick=function(event){alert(event.srcElement.id)}
}
</style>
--Jim