Menu
Easy Java Script Code

Regular Expression: Alternation
In this article you learn how to create an alternation regular expression that will match alternate patterns in a string. More ...

JavaScript Code to Restrict Keyboard Entries
This article shows you how to restrict the user's keyboard input to a textbox to only the digits 0 and 1. You should to be able to modify the code for your own purposes. More ...

Debugging JavaScript : Coercions
JavaScript is not a tightly typed language. Sometimes this comes in handy, but other times it can cause problems. More ...

Code for a Less annoying Popup Window
In previous articles I have stated my opinion that it very discourteous and stupid for Webmasters use advertising popup windows on their Web sites. They get paid $0.01 or less to shove a popup window in your face. More ...

HTML5 Canvas JavaScript Code to a Draw Bezier Curve
The HTML5 canvas element allows you to, when you don't need an extremely complex image, not require your webpage to load an image file, but instead to use JavaScript to the draw the graphics on your webpage. More ...

Java Script Math Object Trigonometric Methods
This article describes the Java Script Math object .sin, .cos, and .tan methods along with how to convert degrees to radians and how to set the number of digits to the right of the decimal point. More ...

Easy JavaScript FileReader Code
The JavaScript FileReader object allows web pages to read files stored on the user's computer. Files may be selected using the input element, or selected with a drag and drop operation. More ...

Regular Expressions Lookarounds
In this article you learn how to match a pattern only when it comes after another pattern (or after not that pattern) or only when it comes before another pattern (or before not that pattern). More ...

Creating Basic Java Script Functions
In this article you learn how to create basic Java Script functions. You learn how to use parameters and how to return values, including how to return an array from a function. The article also intoduces variable scope. More ...

Java Script to Dynamically Add, Remove, and Change Items in a Select List
This article shows you how to use Java Script to add, remove, and change items in a select list. 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 ...

Java Script Code to Calculate Speed / Distance of Falling Object
In this article you learn how to use Java Script to perform gravity calculations, elapsed time, distance traveled, instantaneous velocity, how to use the onchange event, how to use radio buttons, and much more. More ...


Learn more at amazon.com

Custom Search