Display an alert when the mouse pointer is over the div tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Display an alert when the mouse pointer is over the div tag

onmouseover

23rd Feb 2017, 9:51 PM
Shaiv Roy
Shaiv Roy - avatar
5 Answers
+ 6
is it a question or an answer?
23rd Feb 2017, 10:18 PM
C.E.
C.E. - avatar
+ 3
Or give the element an id or class and manipulate it with JS event listeners. Is this supposed to be a tip because I was hoping you answer Elizabeth?
23rd Feb 2017, 11:12 PM
Mark Foxx
Mark Foxx - avatar
+ 3
IT IS A VERY VERY VERY BAD IDEA TO DISPLAY AN ALERT ON MOUSE OVER AN ELEMENT !!! As displaying alert box in loops: the user can be quickly blocked by unwanted auto pop-ups, if they occurs on such events that are fired too much frequently...
24th Feb 2017, 10:25 PM
visph
visph - avatar
+ 1
Use onmouseover, you can find it in DOM and events
23rd Feb 2017, 9:53 PM
WvH04
WvH04 - avatar
+ 1
its a answer of last question of js.... anyway thank for replying on my post
24th Feb 2017, 5:59 AM
Shaiv Roy
Shaiv Roy - avatar