External JavaScript can reference not just .js files, but PHP scripts as well. See how this is done, and the wonderful possibilities linking PHP to JavaScript bring.
This tip demonstrates different ways of implmenting a replaceAll and discusses their pros and cons.
It shows both the easiest "set & forget" method as well as demonstrating the best way to code for maximum performance.
Important aspect of Java Script a programmer must be aware of is it is an Object oriented Programming language. This in other words means that it is possible to use built in objects available in Java Script and also it is possible for a Java Script programmer to define their own objects and their own variable types. Let us see in this section how to make use of built in objects available in Java Script.
The TreeWalker object is a powerful DOM2 object that lets you easily filter through and create custom collections out of nodes in the document. This is a comprehensive tutorial on how to utilize this object.
This set of Javascript functions trim or remove whitespace from the ends of strings. These functions can be stand-alone or attached as methods of the String object. They can left trim, right trim, or trim from both sides of the string. Rather than using a clumsy loop, they use simple, elegant regular expressions. The functions are granted to the public domain.
Having got a brief idea about Single Dimensional Array in JavaScript let us see in this section how to define and access Two Dimensional Array in JavaScript.
Having known briefly about the features of Java Script let us start with a lighter section of knowing about how to pace a Java Script within a HTML page, and how to execute this and so on.This can be done by using the area Java Script.
Just like any other programming language the conditional statements in Java Script are used for decision making purpose.If a programmer wants to execute certain statements only , when a desired condition is satisfied or have the true value then this conditional statement namely if statement can be used.
JavaScript may not be known for its object oriented properties, but it does support most of the features required to be considered an Object Oriented language. See how to write OOP code in JavaScript.
This tutorial shows you how to create a small snippet of code which will display the last time the file was modified. Very useful for keeping track of page updates or informing your visitors of how old the page content is.