Login To InderWeb ! Just Play !

Username:
Password:

UserSubmittedComments

include

including Javascript file include import inline direct

You should include a JavaScript file in your pages. There are many ways to include javascript in your page.
This has several advantages:

  1. By updating one file, you update your script on all pages.
  2. 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.
  1. 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?

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>
Syndicate content

Popular Tags

tags in Web Links