JavaScript
is mostly used in millions of millions web page due to this it add validate
form, functionality, communicate with serve it make web pages more interactive.
Its client side scripting language scripts is run by the web surfer’s browser.
JavaScript is object oriented and interpreted language as well.
Code is run by the interpreter which
is basically built in to the web browsers.
Client side:
When browser is on programs are passed
to the computer then computer executes program. Repetitive task performed by
Scripting Languages.
Object Oriented:
New objects are created in JavaScript
that cannot be inherited from any existing object.
The
JavaScript is constructed in such away that script has variables, object or
literal. Variable is item which is representative of numbers, text, Boolean
values or an object. Literal is the actual number of text, number or Boolean
values that are represented by variables and collection of variable is the
object.
Operator, control structure functions,
action , event and referencing are other
most important part of script.
You must know about the HTML ,
beginner tutorial, C and C++ before to understand the JavaScript tutorial. JS
tutorial contain the basic of JS and practice of programming tips. It tells all
about objects and functions JS tutorial is important for those people who
want to make their own JS functions, JS
program through tutorial we can understand JS HTML DOM, Syntax, Accessing
Elements, Code, Pseudo-Protocol ,Objects, Method, Properties and Event:
DOM is document object model the
browser representation of the HTML page as object is DOM, started from the
browser window then moves in to the page. In DOM HTML the top level object is
always window and offspring of window and all objects means nodes or element is
document object that are display on the pages means image, links, forms etc they are called as descendent of document
object.
HTML DOM:
JS Syntax:
It has basic rules like semi colon (;) must be used for the termination of statement.
It has two types of comments
Single line comments (Always start
from//)
Multi line comments (Start with /* and
end with */)
Acessing Elements:
Acessing Elements:
Element can access by dot and square
bracket notation
Dot notation ( Access element and other object by dot
notation which is started with window and by name or id object can be access )
Square bracket notation (JS document
has numbers of form elements called as children. The specific form question can
be represented by the number that are inside the square bracket[ ]) both
notations are interchangeable but most commonly used is dot notation.
Code:
Code:
JS code always written as inline. To
get information about objects in an HTML page. These pages have methods and
properties to explain object, properties and method we observed the code in
JavaScript Basics.
Methods:
Methods:
Method in JS include:
document.write ()
window. Alert()
Event Handler:
We use on click event handler to
change the back ground color of the page. Event handler is consider as the
attributes that tells the element to listen for specific event that is going to
be occur. There are alot of event
handler in JS like on change, on click, on blur, unload, on reset etc.

