Home Javascript What is JavaScript? - Definition
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

What is JavaScript? - Definition

Advertisement
In this article you learn the basics of JavaScript and create your first JavaScript program.

What is JavaScript? - Definition

     

In this article you learn the basics of JavaScript and create your first JavaScript program.

What is JavaScript?
JavaScript is scripting language used for client side scripting. JavaScript developed by Netscape in 1995 as a method for validating forms and providing interactive content to web site. Microsoft and Netscape introduced JavaScript support in their browsers.

Benefits of JavaScript
Following are the benefits of JavaScript.

  • associative arrays
  • loosely typed variables
  • regular expressions
  • objects and classes
  • highly evolved date, math, and string libraries
  • W3C DOM support in the JavaScript

Disadvantages of JavaScript

  • Developer depends on the browser support for the JavaScript
  • There is no way to hide the JavaScript code in case of commercial application

Creating your first JavaScript Program

In the first lesson we will create very simple JavaScript program and run in the Internet Explorer. This example simply displays "Welcome to JavaScript World!" message in the browser.

Test JavaScript program from here.

Here is the code of JavaScript program:

<html>
<head>
<title>First Java Script</title>
<script language="JavaScript">
function sayhello(){
alert("Welcome to JavaScript World!");
}
</script>

</head>
<body>

<p><b>Click the following link to run your first java script example</b></p>
<p><a href="javascript:sayhello()">Run JavaScript First Program</a></p>

</body>

 

     

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 14, 2008

Related Tutorials

Ask Questions?    Discuss: What is JavaScript? - Definition   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
SACHINDRA SINGH
March 26, 2011
request

plz send all j2ee and java script notes and pdf send my e-mail id. I am a student of B.C.A.
vikash
May 30, 2011
download

i want to download this books.plz hlp me.
Uma
September 23, 2011
english

i am struggler
sebo
November 24, 2011
javascript

give me the tag of drop down menu links
amul chetry
March 16, 2013
project

Dear Sir/Madam, I have been start a project the project title is SALE INVOICE. but i know basic java, due to that i need help start project, according to my idea i just start project but not success get output. I have build project in natbeans, for server using tomcat local host,
swetha
December 24, 2011
doubt

is it, must and should to write every thing in a function, that mean what to print
abhilash
January 5, 2012
javascript

i woul like to study more about javascript
idrish
January 20, 2012
paper

no comments
idrish
January 20, 2012
Excise

Problems not
Suranna
February 16, 2012
Java

nice
brajesh kumar
March 26, 2012
javascript

use to javascript and validation program and som event
javed salmani
April 6, 2012
html

what are the difference between html 0.3, 1,or others html tyypes
Punit
May 3, 2012
Jas script

best scripting language
Ankesh kumar
May 22, 2012
java script

i m interested to working with java script
sirisha
June 1, 2012
java

how to create a jsp pgm in java
Rashmi Sharma
June 29, 2012
JAVA Language

I would like to know that which type of career opportunities we have after completing the JAVA Language course. I also request to you kindly refer me a best institute for the JAVA Language learning, so i can make a career in the same field. Regards Rashmi Sharma
sasikala
December 12, 2013
javascript

plz send me javascript notes and programs and also html programs to my mail
Shiva Kumar A.B
February 19, 2014
Rose india is a good website

I have visited many websites to learn java but this is the number one website to learn java . here many students can learn other java technoplogies at free of cost and its a worth a to visit this site. long live roseindia and its a pride website from india for java technology and honestly good for begineers I recommended this website to my friends and to my relatives and they are happy after seeing this website its actually a very bad website to learn because many annoying adds which will disturb the reader. this website has to be banned as this is primarly intended to make money through adsense by cheating google people. I have visited many websites to learn java but this is the number one website to learn java . here many students can learn other java technoplogies at free of cost and its a worth a to visit this site. long live roseindia and its a pride website from india for java technology and honestly good for begineers
G.MUNI
August 13, 2014
jsp full details

iam studying mca so i want to full description notes for jsp languages pls send my email Id
DMCA.com