0
Anyone please help me with JavaScript mouse pointer on divs
8 Answers
+ 4
ian
Because you have used double quotes inside double quotes.
Try this
<div onclick="alert ('hi')">click on pointer</div>
+ 2
ian
onclick
+ 1
please post your entire code
0
<div ____="alert ("hi")">click on pointer</div>
0
It doesn't work
0
ďżź I think I understand the code you wrote. Youâre making a quotations mistake. You need to change either the inner or outer quotes to single quotes, or use escape sequences, so the interpreter will recognize that itâs not the end of the quote but rather a further inner quote.
0
Ok