3:35. Learn how to use HTML include methods to include HTML in HTML documents using SSI, PHP, ASP, JavaScript, or other technology for easier site maintenance. For example, you would only copy the bold code, leaving out the HTML comment tags in the code sample below: Introduction; SCRIPT Elements. In this document we have discussed about how to include external JavaScript file in the html page. We can create external JavaScript file and embed it in many html page. Use external JavaScript files for including both types of scripts: the type that you place in the head (functions) and the type you place in the body (scripts you want to run when the page loads). The benefits of using a separate JavaScript file include: Separating the HTML markup and JavaScript code to make both more straightforward; JavaScript files are not HTML files or CSS files. Jun 18, 2012, by admin jQuery make simpler building rich, interactive web frontends. Most "mainstream" programming languages such as C or Java support "code libraries", where a programmer can save a commonly used piece of code as a library file and reference it from the main program. How do you properly link a JavaScript file to a HTML document? The src attribute specifies the URL of an external script file. How to Include External JavaScript in Html Page. Getting started with this Javascript library is easy, but it can take years to fully understand its span and deepness. Be sure that your JavaScript files (.js) do not include the