<script>
document.write("before write h1.js"+"<br/>");
document.write("<script src='h" + "1.js'><\/script>");
document.write("after write h1.js" +"<br/>");
</script>
h1.js file:
This is h1.js
In IE the result will be:
- before write h1.js
- after write h1.js
- This is h1.js
Firefox Chrome Safari Opera:
- before write h1.js
- This is h1.js
- after write h1.js
How could I write a script to make it the same order in all brower.