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.
An introduction to Object Oriented Programming in Javascript. This example creates a small user control that can be used repeatedly and independantly on the same web page.
Use the Dreamweaver behaviors panel to create small pop-up windows. This behavior helps to create pop-up ads, small browser windows etc. If you don't have Dreamweaver we have provided the code that you can cut 'n' paste and use in your web page.
This code snippet lets you hide the error message which appears when there occurs a Javascript error in your pages. The script will still not function but the visitor will not see the error message. Written in French.
Simple URL redirection made using JavaScript and the window.location() function. Also provided an example how to make URL redirection with time delay, using the setTimeout() function in Java Script.
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.