Javscript tutorials
What is Javascript?
Javascript is client side language. In order to reduce the server side operation ,we are using client side programs. It is light weight programming language. It means that it will not overload the CPU also .
It is written inside HTML file or outside .js file.
Is javascript and Java same?
Ofcourse not. As i told javascript is client side scripting language. Java is Object oriented Programming language. Javascript won't directly communicate with OS. But java does.
Tags:
Open tag:
<script type="javascript/text" ?
Closging Tag:
</script>
Here type defines which type of scripting language we are using.
This script can be included in two places <head> or <body>
it can also included from external file.
Simple Javascript code:
<html>
<body>
<script type="javascript/text">
alert("hi");
</script>
</body>
</html>
Save this file with .HTML extension
if you open the file It will show "hi" in alert box.
More tutorials come soon
|