Log In


Tuesday, March 1, 2011

JavaScript Introduction

Requirements:

Before continuing to JavaScript, you have to know the basic understanding of HTML/XHTML.

What is JavaScript? 

JavaScript is a scripting language. It is a scripting language and it is a lightweight programming language. JavaScript can also be embedded directly into HTML pages which is awesome! Pretty much everyone can use JavaScript without purchasing a license.

What the difference between Java and JavaScript? Are they the same?

I have come across a lot of situation of people where they think that Java and JavaScript is the same. NO! they are not the same. There is a difference. Java is developed by Sun Microsystems which is a way powerful and much more complex programming language then JavaScript.

What Can JavaScript do?

It does the following things:
  • JavaScript can put dynamic text into an HTML page
  • JavaScript can react to events
  • JavaScript can read and write HTML elements
  • JavaScript can be used to validate data
  • JavaScript can be used to detect the visitor's browser
  • JavaScript can be used to create cookies
- w3schools.com
Example:
When starting Javascript, you will to include this before and after the code:
<script type="text/javascript"> write your code here </script>. This tells the computer that the javascript code starts from here "<script type="text/javascript">" and ends here "</script>".
So now try this:
<script type="text/javascript"><!--
document.write("Hello World!")
//--></script>
Where to download JavaScript?

You can download JavaScript Editor at http://www.yaldex.com/Ready/freejse.zip for your practise.

0 comments:

:a :a   :b :b   :c :c   :d :d   :e :e   :f :f   :g :g   :h :h   :i :i   :j :j   :k :k   :l :l   :m :m   :n :n   :o :o   :p :p   :q :q   :r :r   :s :s   :a :t

Post a Comment

After, you have commented, feel free to sign up for our Newsletter or become a member by registering with us! Thanks for your Comment!

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More