Hello, I work on an audio player for my website but it is only playing if I write the code in my HTML document. omegle
I would like to separate the HTML and JavaScript documents but it doesn’t work with in the of my HTML document.
Try placing it at the bottom of the HTML file before the closing </body> tag or you can add the defer attribute to the script element that is loading the file.