Menu
Easy Java Script Code

How Far Did the User Scroll?
In this article you learn how to use Java Script to determine how far a user scrolled your webpage before leaving, and how to log this data on the server with an example using ASP. 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 ...

Java Script to Get Selected Item from Select List Option Group
Since you may have identically named items in multiple optgroups, you need to a way to get the name of the optgroup as well as the name of the option. The code in this article shows you how. 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 ...

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 ...

JavaScript 24-Hour Trainer
JavaScript has matured from making Web pages dynamic to making them interactive, providing users with a rich and memorable Web experience. This unique book-and-DVD package prepares you for the new generation of Web browser changes that are occurring on the ever-evolving Web and shows you how JavaScript is an essential component of those changes. More ...

Synchronous and Asynchronous Script Loading
Whether to use synchronous or asynchronous script loading depends upon the design of the webpage. Asynchronous script loading can cause the webpage can render more quickly. But if done without consideration for the design it can cause webpage flash or even errors. More ...

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 ...

Easy Java Script Code to Fill Array With Random Numbers
The code I present here might not be the fewest lines possible to fill an array With random numbers, but it is the easiest to understand. More ...

Replace Drop-down with Drag-and-drop
From a webpage designers point of view, drop-down lists require a lot of html tags. Wouldn't it be nice if you could just let the user drag-and-drop text into a simple text box. You can! More ...

Java Script Code for Directory File List
In this article You'll learn how to create a webpage that gives a list of the files in a folder. This example is for use with Internet Explorer Web browser on your local computer. More ...

Sams Teach Yourself HTML5 in 10 Minutes
One important part of the new HTML5 specification is the new date-time picker control. In this book you create a webform that uses the new date-time picker control, and you'll also create a small PHP server-side program that displays the value you entered into the date-time picker control when you click the Submit button to show how you can extract data from the control on the server. More ...