Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Attribute for <SCRIPT ...>
TYPE = "text/javascript" | "text/vbscript" | other scripting language

Usage Recommendation
thumbs up use it

TYPE, which is required, indicates the scripting language to use for the <SCRIPT ...> element. The most common value for TYPE is text/javascript, which indicates that the script is written in JavaScript. Other possible values are text/vbscript for VBScript (which only supported by MSIE) or text/tcl for Tcl (a great language but not well supported at all).

The following example creates a small JavaScript script that outputs the current time:

<SCRIPT TYPE="text/javascript">
<!--
document.write("<P>right now: " + new Date() + "<P>");
//-->
</SCRIPT>

which gives us:

 
 
  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire