Menu
Easy Java Script Code

Easy Java Script Windows
This article gives you the basics of designing, opening, and closing browser windows using Java Script. In future articles, I will show you how to do all kinds of annoying things with windows using Java Script. More ...

JavaScript Variable Scope
Understanding variable scope is very important, because if you don't use scope properly, you could end up with unexpected results and a very confusing bug. The scope of a variable refers to the parts of the code from which it's visible. More ...

Easy JavaScript Form Design
A form is an html element that allows users to enter information. To experiment with forms in JavaScript, replace the method and action attributes in the form opening tag with onSubmit='javascript return false;' to prevent the form from being submitted to the server. More ...

Prototype Keyword Gives JavaScript Object Oriented Inheritance
The way JavaScript supports inheritance is not like true object oriented languages like C+. In JavaScript, the prototype keyword allows an object to inherit the properties and methods of another object. More ...

Easy Java Script Animation
There are many ways to create an animation, but the simplest way is to use Java Script along with CSS. In this article, I show you how to create simple Java Script animations. More ...

Regular Expression Position Matching
In this article you how to use regular expressions to match characters at the beginning, end, both beginning and end, or at any specified location in a string. More ...

Code to Add Music to Your Webpage
Some people think it's discourteous and annoying to have music playing on your webpage. But, hey, it is your webpage, and it depends upon your websites audience and purpose as to whether music is appropriate. In this article I show you how easy it is to configure music on your webpage. More ...

Java Script Message Boxes
Java Script provides three different types of message boxes that allow you to display a short message to the user, or request a bit of information from the user. If one of these built-in message boxes don't suit your needs, this article shows you how to create your own custom message box. More ...

Calculators for Your Web Site : Body Mass Index
If you have a Web site related to health or dieting, or you just want to provide more useful features on your Web site, you can provide a BMI calculator. This article shows you how to code a Java Script BMI calculator for your Web site. More ...

Password Protection Using the JavaScript Cookie Method
You can password protect a webpage or your entire website with some very simple JavaScript. In this article, I provide you with the code to password protect your website with JavaScript using cookies. This method should NOT be used for anything that absolutely MUST be password protected. Updated to add requested new features. More ...

Round a Float to 4 Digits to the Right of the Decimal Point
On the typical PC, Java Script Math object methods can return floating point numbers with up to 16 digits to the right of the decimal point. For most purposes, this kind of accuracy is not required, nor desired, and that many digits causes nothing but confusion. In this article, You'll learn how to round a floating point number to 4 digits to the right of the decimal point. More ...

Easy Graph Generating Code
If you want to display a graph on your web page, you could use a graphics program to draw the graph, but that's time consuming and the resulting graph is static, it can't change or grow. In this article I will show you how to generate graphs using JavaScript. More ...