+ 2
JS from <head> dose not loading
I have written a script in JS which dynamically change all content of a HTML webpage including css, js and html. Everything works good, but the problem is. When I change the code dynamically, external JS codes mentioned in the head tag dose not get loaded. How can I make all the external js to load after dynamically changing html contents? It's needed to be mentioned that I'm changing the head tag dynamically too.
2 Réponses
+ 9
Wrap it in the function :
window.onload = function ( ) {
/ / Your code here...
}
+ 4
Send the code...