Name
Script
Description
Defines a client-side script. The text contained within the opening and
closing script tags will be executed on the client computer when the page is
loaded (unless the script is a function).
VBScript is not supported by Firefox.
Attributes
LANGUAGE
Specifies the language of the script. The following values are typical:
| Value |
| javascript |
| livescript |
| vbscript |
The TYPE attribute should be used instead.
SRC
With the SRC attribute, you can link to a script instead of including it in
the document. To link to a file on the same site use the local path e.g.
src="script.js" or href="folder/ad.vbs". You can also
use dots to link to a document in the parent folder e.g. href="..\dropurl.js".
To link to another site, use the full URL e.g.: href="http://www.martin2k.co.uk/script.vbs".
TYPE
Specifies the MIME type of the script (use instead of LANGUAGE). The
following values are valid:
| Value |
| application/ecmascript |
| application/javascript |
| text/ecmascript |
| text/javascript |
| text/vbscript |
Related Tags
If the browser does not support scripts, you can use the NOSCRIPT
tag to display alternative content.
Example
Code
<script type="text/vbscript">
Document.write "Hello World!"
</script>
Generates
© Martin Allen 1999 - 2006. Last updated Thursday 26 October 2006 08:06:56 PM +0100.
|