I read some HTML like:
<script for=foo event=onmouseover> ... </script>
Just wondering what the attributes for=foo event=onmouseover mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the specifications of HTML 4.01/5 and XHTML those attributes are invalid. Also see the W3C specification.
But it turns out that the attributes are proprietary to Internet Explorer, they can be found on MSDN, e.g., in SCRIPT XHTML Element:
Two other pages talk about these attributes with more depth: EVENT Attribute and FOR Attribute. Notice that both have a note:
This is, of course, not true.
Also see Attaching an Event Handler, which discusses the various methods with which an event handler can be bound to an element.