1. Computing & Technology

JavaScript: Most Popular Articles

These articles are the most popular over the last month.
Using window.onload
Using window.onload Join the Discussion Questions? Comments? Some scripts require that you run something
Free JavaScript Download
You don't have to pay for JavaScript, and you don't have to write it yourself either -- unless you want to. We'll help you understand your options for finding, downloading, and customizing free JavaScript code.
Final Javascript Quiz
Learn Javascript Final Javascript Quiz Tutorials Object Oriented Javascript Defining Classes Putting
Radio Button Validation
Radio Button Validation The setup and validation of radio buttons appears to be the form field that gives
Numbers to Words
Numbers to Words Join the Discussion Questions? Comments? Related Articles Formatting Numbers Roman Numerals
Passing Parameters
Learn Javascript Passing Parameters Join the Discussion Questions? Comments? More of this Tutorial Functions
Modal Windows
Modal Windows Join the Discussion Questions? Comments? Related Resources Modal Dialog Box Creating a
setTimeout or setInterval
setTimeout or setInterval Join the Discussion Questions? Comments? Glossary setTimeout setInterval The
Print Button
Print Button Join the Discussion Questions? Comments? You can easily add a print button or link to your
Deleting Cookies
Deleting Cookies Join the Discussion Questions? Comments? More About Cookies Writing Cookies Reading
Target Window or Frame
Target Window or Frame Join the Discussion Questions? Comments? With an ordinary HTML link using the
Javascript and XHTML
Javascript and XHTML Join the Discussion Questions? Comments? With HTML pages on the web you can just
getElementsByClassName
The Javascript DOM 8. getElementsByClassName Join the Discussion Questions? Comments? More of this Feature
Defining Classes
Learn Javascript Defining Classes Join the Discussion Questions? Comments? More of this Tutorial Object
Creating a Combo Box
Site Navigation 7. Combo Box Join the Discussion Questions? Comments? More of this Feature Introduction
document.write
document.write Join the Discussion Questions? Comments? A lot of people, particularly those first starting
The IF Statement
Learn Javascript The IF Statement Join the Discussion Questions? Comments? More of this Tutorial The
The Javascript Tooltip
This is a Javascript Tooltip Please visit my site Extended Tooltip 1. Introduction and Sample Basic Help
Dynamic Dropdown Two Selects
Dynamic Dropdowns Based on Another Dropdown Join the Discussion Questions? Comments? More of This Feature
Modal Dialog Box
Modal Dialog Box Part 1 : Introduction and Sample Page Basic Help Using Pre-written Scripts More of this
Adding Validation to the Submit Button
Validate on Submit 2. Submit Button Join the Discussion Questions? Comments? More of this Feature Why
Page Events
Learn Javascript Page Events Join the Discussion Questions? Comments? More of this Tutorial Form Events
Passing Parameters Via Query Strings
Passing Parameters Via Query Strings 1. Write Querystrings Join the Discussion Questions? Comments? More
No Right Click Script
No Right Click Script Join the Discussion Questions? Comments? Related Resources View Source Bookmarklet
Mouse Cursor Position
Mouse Cursor Position Join the Discussion Questions? Comments? Until recently there was no standard way
Function to Read Parameters Passed Via Query Strings
Passing Parameters Via Query Strings 2. The Read Function Join the Discussion Questions? Comments? More
What Is JavaScript?
JavaScript is a popular programming language that's built into all the major web browsers and used to make web pages interactive. This article will answer all your basic questions about what JavaScript is and how to use it -- even if you aren't a computer programmer.
Bulletin Board / Forum Code Converter
Bulletin Board / Forum Code Converter Join the Discussion Questions? Comments? At some stage you will
Back Button
Back Button or Link Join the Discussion Questions? Comments? So you would like to put a link on your
Obtaining Your Visitor's IP Address
Obtaining Your Visitor's IP Address Join the Discussion Questions? Comments? JavaScript itself has no
Hello World
Learn JavaScript Hello World Join the Discussion Questions? Comments? More of this Tutorial Getting Started
The CASE Statement
Learn Javascript The CASE Statement Join the Discussion Questions? Comments? More of this Tutorial The
Event Listeners
The Javascript DOM 19. Event Listeners Join the Discussion Questions? Comments? More of this Feature
Returning a Value
As well as being able to pass parameters to a function in JavaScript, we can also return a value from the function.
Drop Down List Validation
Drop Down List Validation Join the Discussion Questions? Comments? Validation of dropdown lists is fairly
Returning Multiple Values
Returning Multiple Values Join the Discussion Questions? Comments? You can pass multiple values to a
Using Modal Dialog Box Javascript
Modal Dialog Box Part 3 : Use the Script More of this Feature Introduction and Sample Obtain the Script
Ajax - Asynchronous
When should you use asynchronous Ajax calls and when should you use synchronous.
Google Maps - Adding a Marker
Google Maps Adding a Marker More of this Tutorial Get an API Adding a Map Zooming In and Out Latitude
Hex to Decimal and Decimal to Hex
Hex to Decimal and Decimal to Hex Join the Discussion Questions? Comments? A number of computer related
JavaScript and Unicode
JavaScript can work with unicode as well as ASCII.
Comparison Operators
JavaScript uses a number of operators to handle the comparisons that need to be made between two fiends
Basic Popup Windows
Popup Windows 1. Basic Popup Windows Join the Discussion Questions? Comments? With HTML you can open
Disable Form Fields
Disable Form Fields Join the Discussion Questions? Comments? Sometimes when you have a form for your
Equals, Equals Equals, or Equals Equals Equals
Using one, two or three equals signs in Javascript depending on what you need to achieve
Array Maximum and Minimum Values
Array Maximum and Minimum Values Join the Discussion Questions? Comments? One of the advantages to JavaScript
Ajax - Get or Post
When should you use GET and when should you use POST with Ajax.
getElementsByTagName
The Javascript DOM 7. getElementsByTagName Join the Discussion Questions? Comments? More of this Feature
removeChild
The Javascript DOM 9. removeChild Join the Discussion Questions? Comments? More of this Feature Introduction
External Javascripts
Learn Javascript External Javascripts Join the Discussion Questions? Comments? More of this Tutorial
Collapsible Menu HTML
Collapsible Menu 4. Adding Menus Join the Discussion Questions? Comments? More of this Feature Introduction
Common Javascript Errors
Commonly made Javascript errors and how to find them
Strings to Numbers
How to convert text strings to numbers in JavaScript.
Recursive Calls in JavaScript
There are two ways of setting up recursive function calls in JavaScript
Adding Javascript from Javascript
Adding Javascript from Javascript Join the Discussion Questions? Comments? One thing that Javascript
responseText and responseXML
Introduction to Ajax 8. responseText and responseXML Join the Discussion Questions? Comments? More of
A Shorter IF Statement
When you are assigning different values to a single field depending on a condition, JavaScript provides a way to combine the decision into the assignment.
Calendar Generator
Create the HTML code for a calendar to add to your page
innerHTML
The Javascript DOM 6. innerHTML Join the Discussion Questions? Comments? More of this Feature Introduction
Getting Started
Introduction to a series of tutorials on programming with JavaScript
JavaScript 101
Want to use JavaScript on your web pages? There are several alternatives.
Browser Detection
Browser Detection Join the Discussion Questions? Comments? One rather interesting statistic that you
The Tooltip Script
Extended Tooltip 2. The Script Join the Discussion Questions? Comments? More of this Feature Introduction
Submitting after validation
Validate on Submit 3. Submit If Valid Join the Discussion Questions? Comments? More of this Feature Why
Convert to Roman Numerals
Convert to Roman Numerals Join the Discussion Questions? Comments? Elsewhere on About What are Roman
Alert and Confirm
Learn Javascript Alert and Confirm Join the Discussion Questions? Comments? More of this Tutorial Comments
Dynamic Dropdown Three Selects
Three Dynamic Dropdowns Sample and HTML Join the Discussion Questions? Comments? More of This Feature
Javascript Format and Colour
Javascript Formatter Related Articles Javascript Compressor Does your Javascript code look a mess? Are
Positioning the Popup Window
Changing the size of the popup window.: sans serif font left position popup windows desired position body background
Analysis Quiz
Analysis Quiz 1. Quiz Head Script Basic Help Using Pre-written Scripts More of this Feature Quiz Body
Calendar Popup Script
Calendar Popups 1. The Calendar Script Join the Discussion Questions? Comments? More of this Feature
Last Modified Date
Last Modified Date Join the Discussion Questions? Comments? Are you wondering just how current the information
Alphabetic and Numeric Validations
Alphabetic and Numeric Join the Discussion Questions? Comments? Related Resources Mandatory Fields Javascript
Reserved Words
Reserved Words The following are Reserved Words in Javascript. This list of reserved words includes several
Head Scripts and Body Scripts
Head Scripts and Body Scripts Join the Discussion Questions? Comments? You don't need to be able to write
JavaScript Encryption
JavaScript Encryption Join the Discussion Questions? Comments? There are a number of things that are
Event Calendar Javascript
Event Calendar 2. Get the Javascript Join the Discussion Questions? Comments? More of this Feature Introduction
Modal Dialog Box Javascript
Modal Dialog Box Part 2 : Obtain the Script More of this Feature Introduction and Sample Use the Script
JavaScript and HTML
JavaScript and HTML Join the Discussion Questions? Comments? There are four different ways to attach
Defining Variables
Learn Javascript Defining Variables Join the Discussion Questions? Comments? More of this Tutorial Getting
What Version of Javascript
What Version of Javascript Join the Discussion Questions? Comments? Glossary Javascript ECMAscript Javascript
Disable No Right Click Scripts
Disable No Right Click Scripts Join the Discussion Questions? Comments? Related Resources View Source
Adding Days to a Date
Adding Days to a Date Join the Discussion Questions? Comments? Adding or subtracting a number of days
Validate on Submit
Validate on Submit 1. Why Validate Join the Discussion Questions? Comments? More of this Feature Submit
Random Array Sort
Random Array Sort Join the Discussion Questions? Comments? Related Resources Numeric Sort Ignore Case
Browser Window Size
Depending on the browser type, screen resolution and other settings, the size of a browser window may vary considerably. The solution? A collection of JavaScript functions that return information about the size and position of the browser window. This article explains how they work.
Hiding Your Email Address
Hiding Your Email Address Join the Discussion Questions? Comments? Related Resources Email Address Validation
Frames and Multiple Domains
For security reasons Javascripts can't communicate between frames loaded from different domains.
Google Maps - Adding a Description to a Marker
Google Maps Adding a Description to a Marker More of this Tutorial Get an API Adding a Map Zooming In
Last Day of Month
Last Day of the Month Join the Discussion Questions? Comments? There are various times when you are doing
Addslashes and Stripslashes
Addslashes and Stripslashes Join the Discussion Questions? Comments? If you are used to programming your
Read Parameters Passed Via Query Strings
Passing Parameters Via Query Strings 3. Read Querystrings Join the Discussion Questions? Comments? More
Disabling the Default Action
How to bypass the default action when you have alternate Javascript processing to replace it.
Writing Cookies
Writing Cookies Join the Discussion Questions? Comments? More About Cookies Reading Cookies Deleting
Using NOSCRIPT
Learn Javascript Using Noscript Join the Discussion Questions? Comments? More of this Tutorial External
Quiz Script Generator
Multiple Choice Quiz Maker 1. Question/Answer Script Basic Help Using Pre-written Scripts More of this
Nesting If Statements
You can nest one IF statement inside another using JavaScript.
Multiple Dimensional Arrays
Multiple Dimensional Arrays Join the Discussion Questions? Comments? Javascript only allows us to create
Making JavaScript Unobtrusive
How to separate the JavaScript in your web page from the HTML and put it in its own file.
Analog Clock Script
Analog Clock 1. Introduction Basic Help Using Pre-written Scripts More of this Feature The Head Script
Week of Year Date Method
Week of Year Adding to the Date Object Join the Discussion Questions? Comments? Related Resources Day
Sample Hangman
Hangman Sample Game with Images More of this Feature The Body Script Alternate Body The Head Script The
Countdown Timer
Countdown Timer 1. Introduction and Sample Basic Help Using Pre-written Scripts More of this Feature
13. Ternary Operator
The ternary operator provides a shorter way of writing some JavaScript if statements as this example demonstrates.
JavaScript and Emails
Why not to use JavaScript with emails? Well there are some good reasons why JavaScript and Emails don't go together.
Multiple Choice Quiz Script Sample
Multiple Choice Example Quiz Basic Help Using Pre-written Scripts Create Your Own Quiz Question/Answer
JavaScript Execution Order
What order does JavaScript run its code in?
Counting Words
Counting Words Basic Help Using Pre-written Scripts Have you ever thought that it would be useful to
Submit the form only once
Validate on Submit 4. Avoid Multiple Submits Join the Discussion Questions? Comments? More of this Feature
How to attach JavaScript into Your Page.
How to Attach JavaScript into Your Page. Join the Discussion Questions? Comments? To be able to use JavaScript
insertBefore
The Javascript DOM 12. insertBefore Join the Discussion Questions? Comments? More of this Feature Introduction
Five Most Common Coding Errors
The five worst pieces of code that people use with Javascript and which you ought to avoid.
Checkbox Group Example
Limiting Selections 1. Sample Page Join the Discussion Questions? Comments? More of this Feature Obtain
Sliding Menu HTML
Part 2: The Script Part 3: Make Your Menu M EN U Sliding Menu 3. Make Your Menu Join the Discussion Questions?
Drop Down Lists
Site Navigation 1. Introduction Join the Discussion Questions? Comments? More of this Feature Drop Down
Value of a Function
Learn Javascript Value of a Function Join the Discussion Questions? Comments? More of this Tutorial Functions
Thumbnail Image Popups
Popup Windows 8. Thumbnail Image Popups Join the Discussion Questions? Comments? More of this Feature
JavaScript and JScript
JavaScript and JScript, different languages for different browsers.
Rollover Gallery Sample
Rollover Gallery 1. Introduction and Sample Basic Help Using Pre-written Scripts More of this Feature
Drop Down Menu
Drop Down Menu 1. Introduction and Sample Basic Help Using Pre-written Scripts More of this Feature Head
Referring Site
Referring Site Join the Discussion Questions? Comments? The above line (if there is one) contains the
Attaching Event Handlers in Javascript
Attaching Event Handlers in Javascript Join the Discussion Questions? Comments? The more that you can
Using Pre-written JavaScript
The actual steps required to use a pre-written JavaScript with your page are not always included with the script. Here is a step by step list of what you need to do in order to be able to use any pre-written JavaScript in your page. You will still need to refer to the instructions with the script for the details though.
Validate Text Fields
Text Field Validation Join the Discussion Questions? Comments? Related Resources Tutorials Text fields
DOM: 8. Get Child Nodes
The property allowing us to access the nodes contained within the current node is actually a nodelist since a node can of course contain more than one node.
Follow the Mouse Sample
Follow the Mouse 1. Introduction Basic Help Using Pre-written Scripts More of this Feature Obtain the
Form Events
Learn Javascript Form Events Join the Discussion Questions? Comments? More of this Tutorial Page Events
First Javascript Quiz
Learn Javascript Javascript Quiz One Tutorials Getting Started Hello World Defining Variables Operators
Window Close
Window Close Join the Discussion Questions? Comments? In my series of articles on popup windows I go
Google Maps - Multiple Maps on One Page
Google Maps Multiple Maps on One Page More of this Tutorial Get an API Adding a Map Zooming In and Out
Cross Browser Ticker/Marquee Example
Cross Browser Ticker/Marquee 1. Introduction and Sample Basic Help Using Pre-written Scripts More of
Calculator Tutorial
A series of tutorials explaining one way to use Javascript to create a calculator.
Timed Window Close
Setting your pupup window to automatically close after a set time.
Date and Time
Learn Javascript Date and Time Join the Discussion Questions? Comments? More of this Tutorial Mathematical
Vertical Scroller Script
Vertical Scroller 2. Obtain the Script Join the Discussion Questions? Comments? More of this Feature
Bitwise Operators
The Javascript bitwise operators don't get used a great deal but they do have their uses.
Mouse Events
Learn Javascript Mouse Events Join the Discussion Questions? Comments? More of this Tutorial Event Handlers
JavaScript By Example
A series of example JavaScript that shows you how to write JavaScript.
Cross Browser Ticker/Marquee Script RtoL
Cross Browser Ticker/Marquee 2a. Obtain the Right to Left Script More of this Feature Introduction LtoR
With
With Join the Discussion Questions? Comments? The "with" keyword is used to specify an object to which
Image Zoom
Image Zoom Join the Discussion Questions? Comments? How would you like to offer visitors to your web
Continuous Text Marquee Code
Continuous Text Marquee 2. Obtain the Script More of this Feature Example Add to Your Page The first
Alternatives to eval
Alternatives to "eval" Join the Discussion Questions? Comments? One Javascript command that gets used
DOM: 7. Get Parent Node
Node properties don't just include pointers to the immediately adjacent sibling nodes, there is also a pointer to the parent node (the tag within which the current element or text is contained).
Popup Window Reference
window.open Reference The window.open command takes the following format: var newWin = window.open(url,winName,features,replace);
Numeric Test
Numeric Testing Join the Discussion Questions? Comments? There are a number of different ways to test
Credit Card Validation
Validate credit card numbers in forms with this Javascript routine for validating the length and check digits.
Variable Scope
Learn Javascript Variable Scope Join the Discussion Questions? Comments? More of this Tutorial Functions

©2012 About.com. All rights reserved.

A part of The New York Times Company.