Skip to content

Java Script

July 24, 2010

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:

//code comes here…..
//code comes here…..
//code comes here…..

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:

alert(“This is a test alert message”);

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: