Java Script Introduction
Java script is web programing language.
In java script you can perform tasks such as,
Performing mathematical calculations on numbers such as addition, subtraction, multiplication, and division.
Working with text to find out how long a sentence is, or where the first occurrence of a specified letter is within a section of text.
Checking if one value (a number or letter) matches another.
Checking if one value is shorter or longer, lower or higher than another.
Repeating an action a certain number of times or until a condition is met (such as a user pressing a button).
That says when we want to do some process in the web page basically using java script programing language.
Java script is a object oriented programing language.
It also case sensitive as like java.
In the script, space , tag are avoiding and they are not cause to what will say in the code.
All of web browsers are support to java script and we can disable java script in web browser.
Set comment with java script.
If we set a comment in java script the comment is not publish or that comment is not involve to process in web page.
When set a one line comment in java script using
//comment_____
When we set a multi-line comment in java script using
/* comment
Comment____*/
OK Now lets see how to insert java script code to my html page.
There are several things to set a java script to my web page.
Using <script> element.
this element can use with in head tag or with in body tag.
The code should write in this element as following example
<script>
document.write("I like Java Script")
</script>
EX:-
<html>
<head></head>
<body>
<script>
document.write("I like Java Script")
</script>
</body>
</html>
lets see next tutorial..
0 comments:
Post a Comment