As in, how in javascript do you detect hover/focus/etc?
There's a whole slew of mouse events (like onmouseover and onmouseleave will trigger for the beginning and ending of a "hover") w3schools.com/jsref/obj_mouseevent...
onmouseover
onmouseleave
Thanks. But you mean by javascript!
Yes, sorry I thought that's what was meant by "without CSS". Is the question asking for inline styling?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As in, how in javascript do you detect hover/focus/etc?
There's a whole slew of mouse events (like
onmouseover
andonmouseleave
will trigger for the beginning and ending of a "hover")w3schools.com/jsref/obj_mouseevent...
Thanks. But you mean by javascript!
Yes, sorry I thought that's what was meant by "without CSS". Is the question asking for inline styling?