header

Java Script

Script tag is the primary tag which identifies javascript. Any javascript code should be written in between the script tag.



Here the attribute language defines the language used.
For VBscript user it will be vbscript.
The script tag can be written anywhere inside head or body tag of html.

Example:




Alert or Popup:

The in built function alert can be used for creating a alert or popup message.
Use the function with any string as argument.

Example:

No comments: