Menu
Easy Java Script Code

Java Script Comparison Operators
A comparison operator compares two values and returns the result "true" or "false". For comparing numeric values the operators perform the same as they do in algebra. For comparing character strings each character in the strings are converted to their ASCII values and then a numeric comparison is made. More ...

HTML5 and Local Storage
The HTML5 local storage mechanism is a nice replacement for cookies with it you can write up to 5MB of persistent data between multiple pages to a special file on the client computer. More ...

Working With the Keyboard in Java Script
Using Java Script you can determine which keyboard key the user pressed. You can use this information to block certain keys, to replace a key's character, or to perform an action based upon a specific key being pressed. In this article, I'll provide some basic code for working with the keyboard. More ...

Java Script Code to Move Items Between Select Lists
In this article you'll learn how to use Java Script to move items from one select list to a second select list. I'll explain the code in detail so that you'll be able to fully understand and modify it for your own use. More ...

JavaScript Code for Binary to Hexadecimal - Hexadecimal to Binary Conversion
You don't really need JavaScript to convert a binary number to a hexadecimal number, however if you want to create a web application the JavaScript code to convert a binary number to hexadecimal number and to convert a hexadecimal number to a binary number is shown below. More ...

Easy Code for Date Count Down
One of the most powerful incentives for people to make a purchase is scarcity, and one of the most popular ways to create scarcity is have a "limited time" offer. Web pages that present a limited time offer always have a count down timer to let you know how much time is left. More ...

Regular Expressions Subexpressions
In this article you learned how to use subexpressions to rearrange matches in a regular expression and how to replace the value of a subexpression match in the results. More ...

Display a Value in Currency Format
To display a value in currency format we first round the value to the required number of decimal places, then determine if we need to add trailing zeros. More ...

Easy Rollovers
A rollover is when a user moves the mouse pointer over an image on a Web page the image is replaced with a new image. The simplest rollover can be created with the html code provided in this article. More ...

Including Special Characters in a JavaScript String
In JavaScript you define a string by placing its characters within double quotes. More ...

Easy Java Script Timer Code
Sometimes you need something to happen after a delay, or you need something to occur repeatedly. This can be accomplished using Java Script timers. My objective in this article is to give you the timer code without surrounding it with a lot of confusing peripheral code so you can quickly use it for your own purposes. More ...

Disable IE8 Accelerators on Your Website
Accelerators is a new feature added to Internet Explorer 8 designed to allow Microsoft to make money off your website and steal search revenue from webmasters. The only way I can find to disable accelerators on Your Website is to take away your website visitors ability to select text on your webpages. More ...


Learn more at amazon.com

Custom Search