Calling an External Automatic Script
If you use a script in several different Web pages, you’ll save time and avoid typos by creating an external script (in text-only format) and then calling the script from each page where it is used.
To call an external automatic script:
1. | Type <script.
|
2. | Type type="text/language-name", where language-name identifies the scripting language you’re using: javascript, vbscript, etc.
|
3. | Type language="script", where script is the name of the scripting language you’ll be using: JavaScript, VBScript, etc.
|
4. | Type src="script.url", where script.url is the location on the server of the external script.
|
5. | If desired, type charset="code", where code is the official name for the set of characters used in the external ... |
Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.