+ 1
Why this code showing error on this platform but same code on laptop it's working properly 😕
Can anyone explain and tell me how to solve this error 🧐 Why this code showing error on this platform but same code on laptop it's working properly 😕 https://code.sololearn.com/WINcCIAyvDEe/?ref=app My friends can you explain why this is showing error Darpan kesharwani🇮🇳 I Am Rochie lolo 🌍🌎🌏ᴀɪᴍ🌍🌎🌏 Steve Sajeev
6 Respuestas
+ 6
Shaikh Jahangir Alam .
as @koli said...
Also you can remove the error by using this ` script` tag ..
See this modified version...
https://code.sololearn.com/WQDA6m9cZBqo/?ref=app
+ 6
Before you can use HTML items in your code you have to wait at least until DOM content is loaded.
The quickest way to running the code shows this example:
https://sololearn.com/compiler-playground/WVqoL72aaWx2/?ref=app
+ 3
Insert your entire js program inside `window.onload = () => {}`
See this one:
https://code.sololearn.com/WFJOZ5qMdNXy/?ref=app
+ 1
Thank you All 👍
+ 1
Shaikh Jahangir Alam
I modified your code to remove the annoying text selection and blue highlighting overlay when clicking in the app on phones and touch devices.
I also tweaked the js so that the cursor div is correctly centered on the pointer.
https://code.sololearn.com/WYLs0639Gdcf/?ref=app
+ 1
Thank you for modify my Bob_Li ❤️