Javascript not working
Hello everyone,
I am new to CPanel hosting so I was wondering if you could help me. I just hosted my new website
- Removed -
I had been playing with the code on jsbin and other platforms and everything was running fine, but when I hosted it the javascript seems to be unresponsive. Not sure what to do. This is only the second website I've put online and first time I encountered this problem. Thanks in advance and I hope you can help me!
Kind Regards,
Nathan
-
JavaScript is client-side code, which means it is interpreted and executed by your browser. Your server therefore only serves the code and included files to the browser and plays no other part in how it functions. Your question would perhaps be better suited on a website like Stack Overflow, as this issue is in no way related to cPanel. 0 -
I managed to make it work! I had forgotten to do the document ready function at the start of the javascript file. 0 -
[quote="nathangotlib, post: 1627132">I managed to make it work! I had forgotten to do the document ready function at the start of the javascript file.
I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.0
Please sign in to leave a comment.
Comments
3 comments