Password Protection Using the Frames Method
One method of password protecting your webpages is to use a cookie, but cookies are unreliable. If you can't trust a cookie to store the information that the user is logged in, where can you store it? In this example I'll show you how to use frames for JavaScript password security. More ...
Regular Expression Basics : Match a Set of Characters
A Regular Expression (regex) is a sequence of characters that define a pattern that allows you to search, match, locate, replace, manipulate, and manage text. In this article you'll learn how to use regular expressions to match a set of of characters. 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 ...
Let Your Web site Visitors Set Font Size
In this article, you'll learn that it requires only a few lines of Java Script to let the visitors to your Web site control the font size. You'll also learn how to use a cookie to store their preference on their computer. More ...
Using a Select List for Navigation
An HTML Select list is a form control used to create a drop-down list of items from which the user can select. You can use a select list as a navigation element by setting each option element's value attribute to the URL of a web site or web page. More ...
Debugging JavaScript : Coercions
JavaScript is not a tightly typed language. Sometimes this comes in handy, but other times it can cause problems. More ...
JavaScript Code for Binary to Decimal - Decimal to Binary Conversion
To convert a binary number to decimal add together the decimal weight of all positions that contain a 1. To convert a decimal number to binary place a 1 in all positions where you can subtract the weight of the binary position. More ...
Java Script to Get Selected Item from Drop-down Select List
An HTML Select list is a form control used to create a drop-down list of items from which the user can select. This article provides code to get the selected item from a select list. 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 ...
JavaScript to Add and Remove Rows and Cells from a Table
If you need a client-side application where you have a table that you want to enable the user to add and remove rows and cells, this article provides you with JavaScript code to easily accomplish that. 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 ...
Easy Moving Popup Code
You have probably come across a webpage where a small window appears at the side of the webpage and drifts to the center of the webpage. They are commonly used to present you with a form where you can enter your email address to subscribe to a newsletter. In this article I give you the code to create this type of moving popup window. More ...
