How to use external “.js” files

Code like this

 <html>
    <head>
          <script type="text/javascript" src="https://stackoverflow.com/questions/11498068/path/to/script.js"></script>
          <!--other script and also external css included over here-->
    </head>
    <body>
        <form>
            <select name="users" onChange="showUser(this.value)">
               <option value="1">Tom</option>
               <option value="2">Bob</option>
               <option value="3">Joe</option>
            </select>
        </form>
    </body>
    </html>

I hope it will help you….
thanks

Leave a Comment