No, classes refers to styling, not scripts
: Suppose I want to execute the same routine when
"mouseover" is fired for
: three diffent P elements:
:
: <p name="p1" onmouseover="myRoutine(this)">....</p>
: <p name="p2" onmouseover="myRoutine(this)">....</p>
: <p name="p3" onmouseover="myRoutine(this)">....</p>
:
:
: Is it possible to assign this behaviour using classes?
: <p name="p1" class="myClass">....</p>
: <p name="p2" class="myClass">....</p>
: <p name="p3" class="myClass">....</p>
:
: and then myClass.onmouseover = ......
:
:
: Thanks!
:
: