Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Anyone please help me with JavaScript mouse pointer on divs
8 Respostas
+ 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