0
Anyone please help me with JavaScript mouse pointer on divs
8 Respuestas
+ 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