alt
Advertisement
Sponsored links
Online Training
Career Series
Exforsys
Sponsored Links
Exforsys arrow JavaScript
Site Search


JavaScript

JavaScript

Developed initially by Netscape in 1995 for use with HTML pages, JavaScript is now a widely used scripting language supported by the majority of Web browsers and diverse Web tools. A registered trademark of Sun Microsystems, Inc., JavaScript works with HTML pages, adding interactive functions that developers can use to create dynamic Web Pages. JavaScript is a less powerful version of Java that is easy to learn and use as it contains simpler syntax and rules . JavaScript’s source code is embedded into the header of the HTML page on the client side and compiled into intermediate language (bytecode) on the server side. There are no licensing issues with JavaScript.

JavaScript functions as both a procedural language and an object-oriented language. With JavaScript, a developer or programmer can create objects and attach methods and properties. JavaScript reduces the load on the server because most of the data is processed on the client side, resulting in faster processing time for millions of web pages on the Internet. JavaScript’s main functionality is in the development of web pages and web sites that are easily interactive and user-friendly.

Because of the popularity of JavaScript, career opportunities for JavaScript web developers are available all over the world. Online tutorials on JavaScript’s features are available for beginners as well as advanced developers.

 

Start Here
JavaScript Introduction In this JavaScript tutorial, you will learn about introduction to JavaScript, why JavaScript, differences between Java and JavaScript and advantages of JavaScript.

Tutorial Index
  1. JavaScript Variables In this JavaScript tutorial, you will learn about JavaScript variables, rules for variable names in JavaScript, declaration of variable in JavaScript, variables usage, JavaScript in external file, how to place the JavaScript in external file and how to execute this JavaScript p...
  1. How to use JavaScript in HTML page In this JavaScript tutorial you will learn how to use JavaScript in HTML page, how to write output to a page, different places where JavaScript can be paced in HTML, JavaScript in external file and how to place and execute JavaScript in external file.
  1. JavaScript Features In this JavaScript tutorial, you will learn about features of JavaScript, JavaScript as a programming tool, dynamic effects, browser detection, DOM control and other popular JavaScript features.
  1. JavaScript Conditional Statements Part 1 In this JavaScript tutorial, you will learn about the conditional statements available in JavaScript for decision making, if statement and if...else statement.
  1. JavaScript Conditional Statements Part 2 In continuation of JavaScript Conditional Statements Part 1, this tutorial will help you learn about remaining conditional statements in JavaScript, if...else if...else statement and switch statement.
  1. JavaScript Alert Box In this JavaScript tutorial, you will learn about JavaScript alert box along with code for placing the alert box when page is loaded.
  1. JavaScript Confirm Box In the previous section of this tutorial JavaScript Alert Box, we discussed about alert boxes. In this section, you will learn about JavaScript confirm box and prompt box.
  1. JavaScript FileUpload object In this JavaScript tutorial, you will learn about FileUpload object, FileUpload properties, accessKey, disabled, form, name, type, value, FileUpload methods - blur(), focus(), select(), handleEvent(), click() and event handlers - onblur, onchange and onfocus.
  1. JavaScript Form Object In this JavaScript Tutorial you will learn about JavaScript form object, properties of form object, action - elements[], encoding, length, method, name, target, button, checkbox, FileUpload, hidden, password, radio, reset, select, submit, text, textarea and methods of form o...
  1. JavaScript Events Handling In this JavaScript tutorial, you will learn about handling events in JavaScript, what is event handling in JavaScript? events in JavaScript, events associated with mouse - onmousemove, onclick, ondblclick, onmouseout, onmouseover, events associated with keyboard - onkeydo...
  1. JavaScript Object Oriented Features In this JavaScript tutorial you will learn about JavaScript Object Oriented Features, object type, object instantiation, using object properties, using object methods and achieving object instantiation.
  1. JavaScript Event Object In this JavaScript tutorial you will learn about JavaScript event object, properties of event object, altKey, ctrlKey and shiftKey, button, integer value action representation, cancelBubble, clientX and clientY, fromElement and toElement, height and width.
  1. JavaScript Frame Object In this JavaScript tutorial, you will learn about frame object its properties and methods in detail with example. frame object, properties of frame object, frames, self, name, length, parent, methods of frame object, blur(), focus(), setInterval(), clearInterval(), setTimeo...
  1. Working with JavaScript DOM Objects In this JavaScript tutorial, you will learn about DOM object - window, properties of window object, methods of window object, screen, properties of screen object, navigator, properties of navigator object, methods of navigator object, history, property of history...
  1. JavaScript Functions In this JavaScript tutorial, you will learn about JavaScript functions and how to create them.
  1. Passing values to JavaScript Function In this JavaScript Tutorial you will learn about how to pass values to and also how to return values from a JavaScript function.
  1. JavaScript Array Object In this JavaScript tutorial, you will learn about JavaScript Array Object, its properties and methods.
  1. JavaScript Arrays In this JavaScript tutorial, you will learn about JavaScript Array, different ways of defining an array in JavaScript viz. traditional way, shorter form, literal array, accessing the elements in an array and editing the values or elements in an array.
  1. JavaScript Two Dimensional Arrays In this JavaScript tutorial you will learn about two dimensional arrays - how to define and access two dimensional array in JavaScript.
  1. JavaScript Boolean Object In this JavaScript tutorial you will learn about JavaScript boolean object, how to pass value to the boolean object, properties and methods used with boolean object.
  1. JavaScript Event Object Properties and Methods In this JavaScript tutorial, you will learn about event object properties and methods like keycode, layer, offset, modifiers, page, reason, returnValue, screen, srcElement, target, srcFilter and type.
  1. JavaScript Document Object Properties In this JavaScript tutorial, you will learn about Document Object Properties viz. formName, forms, images, lastModified, layers, linkColor, links, plugins, referrer, title, URL and vlinkColor.
  1. JavaScript Applet Objects In this JavaScript tutorial, you will learn about applet object, properties and methods of applet object, Methods of applet object, area object, Properties of area object viz. hash, host, hostname, href, pathname, port, protocol, search and target.
  1. JavaScript Browser Objects In this JavaScript tutorial, you will learn about browser objects in JavaScript, categories of browser-based objects, additional browser objects, anchor object, link object, properties of link object and methods of link object.
  1. JavaScript Location Object Properties In this JavaScript Tutorial you will learn about Properties of Location Object - hash, host, hostname, href, pathname, port, protocol and search property
  1. JavaScript Browser Objects Part 2 In this JavaScript tutorial, you will learn about Browser Objects viz button object properties of button object, form, name, value, Methods of button object, checkbox object, properties of checkbox object - checked, defaultChecked, form, name, type, value, Method...
  1. JavaScript DOM Window Object In this JavaScript tutorial, you will learn about closed property and name property, defaultStatus, status, self property of JavaScript Window object
  1. JavaScript Location Object In this JavaScript tutorial, you will learn about JavaScript Location Object - assign(), reload(), replace(), JavaScript Window Object Methods viz alert(), blur(), setInterval() and clearInterval().
  1. JavaScript Window Object Open Method In this JavaScript tutorial, you will learn about JavaScript Window Object Open Method, features of window object open method - channelmode, directories, dependent, fullscreen, screenX, screenY, height, left, location, menubar, resizable, alwaysLowered, alwaysRa...
  1. JavaScript Window Object Open Method Part 2 In this JavaScript tutorial, you will learn about JavaScript Window Object Open Method, features of window object open method - scrollbars, status, titlebar, toolbar, top, width, innerHeight, innerWidth, outerHeight, outerWidth and hotkeys
  1. JavaScript Array Object Methods – Part I In this JavaScript tutorial, you will learn about Array Object Methods - concat(), join(), pop(), push() and reverse() methods along with general syntax and examples.
  1. JavaScript Array Object Methods – Part II In this JavaScript tutorial, you will learn about on array object methods - slice(), splice() toString(), shift() and unshift() methods along with general syntax and examples.
  1. JavaScript Iterative Structures - Part I In this JavaScript tutorial, you will learn about JavaScript Iterative Structures, for loop, for..in statement, break and continue explained along with syntax and examples.
  1. JavaScript Iterative Structures - Part II In this JavaScript tutorial, you will learn about JavaScript Iterative Structures, while loop and do..while loop explained along with syntax and examples.
  1. JavaScript Array Operations In this JavaScript tutorial, you will learn about different operations with array in JavaScript, how to use the for...in statement, Combining Operations between arrays and within elements of an array, joining two or more arrays and joining elements of an arrays along...
  1. JavaScript Document Object In this JavaScript tutorial, you will learn about document object - part of JavaScript window object, properties and windows of document object, alinkColor, anchors, applets, bgColor, cookie, domain, embeds and fgColor.
  1. JavaScript Exception Handling – Part I In this JavaScript tutorial, you will learn about Exception Handling, Catching errors in JavaScript, Using try..catch statement and throw in JavaScript along with syntax and examples.
  1. JavaScript Exception Handling – Part II In this JavaScript tutorial, you will learn about exception handling viz. try...catch..finally statement and nested try...catch statements along with syntax and examples.
  1. JavaScript Event Handler In this JavaScript tutorial, you will learn about using event handlers along with events for each HTML tag.
  1. JavaScript OnError Event In this JavaScript tutorial, you will learn about onerror event, how to use onerror event along with syntax and example.
  1. JavaScript Elements and Embed Objects In this JavaScript tutorial, you will learn about browser objects - elements and embed, properties of elements object, length, type, embed object, properties of embed object along with syntax and examples.
  1. JavaScript History Object Properties and Methods In this JavaScript tutorial, you will learn about history object properties and methods, length, current, next, previous properties, back(), forward() and go() methods along with syntax and examples.
  1. JavaScript Document Object Methods - Part I In this JavaScript tutorial, you will learn about methods of document object along with syntax and examples. This section covers captureEvents, open, close, getElementById, getElementsByName methods with explanations for each method.
  1. JavaScript Document Object Methods Part II In this JavaScript tutorial, you will learn about document object methods - getElementsByTagName, getSelection, handleEvent, releaseEvents, routeEvent, write, writeln along with syntax, examples and brief explanation.
  1. JavaScript Window Object Timeout Methods In this JavaScript tutorial, you will learn about setTimeout(), clearTimeout() and open() methods of window object along with syntax, usage and examples for each method.
  1. JavaScript Windows Object Properties Part I In this JavaScript tutorial, you will learn about Windows Object properties namely personalbar, statusbar, scrollbar, toolbar property of Window object, pageXOffset, pageYOffset, innerwidth, innerheight, outerwidth and outerheight.
  1. JavaScript Windows Object Properties Part II In this JavaScript tutorial, you will learn about screenX, screenY, screenLeft and screenTop, top, length, frames, opener, parent and window property of Window object along with syntax and examples.
  1. JavaScript Math Object In this JavaScript tutorial, you will learn about Math Object, usage, properties and methods of math object along with syntax and examples.
  1. JavaScript Date Object In this JavaScript tutorial, you will learn about date object and methods of date object explained along with syntax and example.
  1. JavaScript String Object In this JavaScript tutorial, you will learn about String Object, purpose of string object in JavaScript, purpose of string object, indexof method, lastIndexOf method and substring method along with syntax and example.
  1. JavaScript Objects Object oriented Programming in an important aspect of JavaScript. It is possible to use built-in objects available in JavaScript. It is also possible for a JavaScript programmer to define his own objects and variable types. In this JavaScript tutorial, you will learn how to make...