Where to insert JavaScript
JavaScript can appear anywhere in HTML. Using the tags <script>…</script>, you can insert JavaScript anywhere in the HTML document, even before . However, if you want to insert it into the web page that declares the frame (frame web page), you must insert it before