0

Display an alert when mouse pointer is on div tag

<div_________="alert("Hi");"> Put the pointer on div tag </div>

16th Aug 2020, 3:43 AM
Ayub Ansari
4 Answers
0
like <div onmouseover="alert('Hi');">krishna</div>
16th Aug 2020, 5:14 AM
BeastyDSK
BeastyDSK - avatar
+ 3
onmouseenter is event attribute you can use here try learning all event attribute of html for better information.
16th Aug 2020, 4:12 AM
Ayush Kumar
Ayush Kumar - avatar
0
Thanku ....
16th Aug 2020, 4:16 AM
Ayub Ansari
0
use mouseover eventlistener with div.
16th Aug 2020, 5:13 AM
BeastyDSK
BeastyDSK - avatar