add tag to html before it loads using js code example Example: how to add javascript in html <script src="script.js"></script>