On the webpage I am making, I have made a dynamic loader for the main contents. It uses a XMLHttpRequest to get an html file, then sets the innerHTML of a div to the contents of the file. The problem is, any script tags are not run. Any functions in them are not runnable. Is there any way I can force this javascript to run?
2.1m questions
2.1m answers
60 comments
57.0k users