Introduction of Javascript

JavaScript was initially used for validating web form.Its use HTML and css for its web document programming. As central nerve system work in human body in the same way JavaScript work with HTML and css as its structure and look respectively.

JavaScript is a part of Ajax(Asynchronous JavaScript and XML).which is used fetch data from the server behind the user screen and return data without refreshing the page.Its live example are Facebook and Google.

JavaScript is similar to PHP and c.It work same way with variables,
string ,function, arrays and object.

Advantage of using JavaScript.

1.W3C DOM support.
2.Object and Class.

Disadvantage of JavaScript.

1.Low ranking in search engine result page.
2.Development depend on the browser support.

Here is the example of a basic JavaScript .

 

<html>
<head>
<title>This is Java Script Example</title>
<script language=”JavaScript”>
function hellow(){
alert(“This is an alert box”);
}
</script>
</head>
<body>

<p><b>click here to run your java script example</b></p>
<p><a href=”javascript:hellow()”>Run your JavaScript Program</a></p>

</body>

 

Now , enjoy your first java script function. I will be back  soon  with some more function ,keep visiting.

Leave a Reply to This Post

Your email address will not be published. Required fields are marked *

*

You may also like

Latest From 360 KLP Blog

Posted In: Tour and Travel

No matter, where you go, but reaching your destination on time is important. If not you reach your destination on time, you will have to face the issues according to the purpose you go for that destination. For example, if you are going to ai...

Posted In: Clothing

It is true that, most of us do not find time to wash our clothes as we are so busy in office and home. As far the cafes, hotels, salons and other offices are concerned, they need to definitely hire the laundry service to wash the clothes, as ...