include
including Javascript file include import inline direct
Submitted by inder on Tue, 10/28/2008 - 12:24.
You should include a JavaScript file in your pages. There are many ways to include javascript in your page.
This has several advantages:
- By updating one file, you update your script on all pages.
- The pages themselves become slightly lighter, because the include file is cached by the browser, so it doesn't have to be reloaded every time the user loads a new page.
- Including javascript file at top of page before body section inside head tag:-
How to Include an External JavaScript File in a html or php page?
Submitted by inderweb on Tue, 10/28/2008 - 11:31.
It is recommended to make java script file separate from main code file(HTML file).It will make your site much faster.You can include a java script file in many ways and few of them are listed here. To include an external JavaScript file in a file, use the script tag.
<script src="../filename.js"></script>
<script src="../filename.js"></script>
![Validate my RSS feed [Valid RSS]](http://feedvalidator.org/images/valid-rss.png)