Sadsack Posted May 4, 2023 Share Posted May 4, 2023 Visual studio code and i can't get java script to work. <script> src="script.js"</script> I have the above tags in the body tag. I have a file called script.js My html and css work find, but for some reason it is not seeing script.js. How do i link the js with the html? Thank you First time here. I am sure it will not be the last. Quote Link to comment Share on other sites More sharing options...
Solserv Posted May 5, 2023 Share Posted May 5, 2023 Hello! I saw the post and the script tag is written wrong. <script> src="script.js"</script> in place of these you need write. <script src="script.js"></script> The above tag will load the script.js when you run the html page. Hope you find the solution helpful. You may contact me for any assistance. I will try my best to help you. Regards Solserv Quote Link to comment Share on other sites More sharing options...
Sadsack Posted May 5, 2023 Author Share Posted May 5, 2023 Thank you I will try it to night when I start working om my lesson. Thank You Quote Link to comment Share on other sites More sharing options...
Sadsack Posted May 5, 2023 Author Share Posted May 5, 2023 Hi Solserv, I could not wait, I try it, it work fine. Now I can move on thank you for your time and effort. Renny Quote Link to comment Share on other sites More sharing options...
Solserv Posted May 6, 2023 Share Posted May 6, 2023 That's amazing to know your problem is resolved. Good luck for your lessons. May contact me in future if any assistance required. Regards Solserv Quote Link to comment Share on other sites More sharing options...
Sadsack Posted May 6, 2023 Author Share Posted May 6, 2023 Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.