Hi friends..
In this Lession we see what is javascript, and how to use javascript in webpages and what are all advantages of javascripts and more
Ok Lets come!
In this Lession we see what is javascript, and how to use javascript in webpages and what are all advantages of javascripts and more
Ok Lets come!
What is Java Script:
- Java Script is client side scripting language.
- Java Script is the world of web Document programming.
- Java Script is the Scripting Language is a Lightweight programming that supports the writing of scripts.
- Java Script was designed to add interact to HTML pages.
- Java Script code that can be inserted into html page to be executed in web browsers.
Why is Java Script?
- Java Script used for User interact with webpage.
- Java Script is used in billion of Web Pages of Add functionality, Validate Forms, Communicate with the server and much more.
- Java Script also used to Game creators, animators and Multimedia programmers.
Difference between Java and JavaScript?
- JavaScript and java are two completely different language concept and design
- JS is scripting language
- JS developed by Netscape
- Java is programming language
- Java is developed by Sun
JavaScript How is it works?
A Java Script run in client side. the scripts will be executed in client browser. The following fig shown in Java Script working method.
How to use Java Script in your webpage?
A JS
is surrounded by a <script></script> tag. JS used to manipulate
HTML Elements.It can used ‘ID’ Attribute. Can JS can placed in side header
section or body section. The best way you placed in
<head></head>section.
Java Script Structure:
<html>
<head>
<script>
.......Java Script codes;
</script>
</head>
<body>
<script>
.......Java Script codes
</script>
</body>
</html>
Note:
All
modern browsers and HTML 5 supported
<script></script>tag.Otherwise
you can use
<script
type=”text/javascript>
</script>
Note:
First before you learn Java Script! first you understand well in what is function? and What is events? and How to use function and events?.
Next lession i will post briefly
Thanks..
No comments:
Post a Comment