1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

JavaScript: Most Popular Articles

These articles are the most popular over the last month.
Looking to Download JavaScript Snippets? Here's...
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.
Are JavaScript and Java the Same Language?
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.
What is JavaScript Used For?
Just where does JavaScript fit into the overall picture when it comes to building web pages correctly.
Analysis Quiz
Create your own multiple question quizes with this quiz maker script.
Final Javascript Quiz
Test your knowledge of Javascript with this 50 question quiz.
Numbers to Words
Display numbers in words.
Do This Instead of Updating Global Variables in...
As well as being able to pass parameters to a function in JavaScript, we can also return a value from the function.
Cryptogram Script Sample
Create your own cryptograms for other people to decode online with this cryptogram maker script.
Should You Have 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.
Bulletin Board / Forum Code Converter ...
Convert your pre-prepared forum entries between text, HTML, and bbCode with this script.
JavaScript Making Decisions
You can nest one IF statement inside another using JavaScript.
Block Exit Blockers User Script
Block onbeforeunload to stop web pages using exit blockers.
Adding Validation to the Submit Button ...
Uodating the Submit button to perform validation before submitting.
Deleting Cookies
How to delete a cookie with Javascript.
Why JavaScript
How should you use JavaScript so that it enhances your site.
Print Button
Adding a print button to your page and controlling what will print.
Everything you Need to Know About Ajax...
When should you use asynchronous Ajax calls and when should you use synchronous.
\$ and _ in JavaScript
The $ and _ characters are treated differently in JavaScript to the way you might expect. JavaScript considers them to be letters in some circumstances rather than special characters.
Understanding What Order to Run JavaScript Code
What order does JavaScript run its code in?
Hex to Decimal and Decimal to Hex
How to convert between decimal and hexadecimal.
Radio Button Validation
Everything you need to know about radio button creation and validation.
How Hard is JavaScript To Learn?
How difficult something is to learn depends on what you already know and how similar the new thing is to what you know.
Counting Words
How to use Javascript to count the number of words that have been entered into a text area.
How to Split Webpage JavaScript into Separate...
When you first write a new JavaScript the easiest way to set it up is to embed the JavaScript code directly into the web page.
Continuous Image Marquee
This script allows you to display one or more marquees containing images that will scroll continuously without a break except when the mouse is moved over them.
Obtaining Your Visitor's IP Address
There are a number of different ways that JavaScript can gewt the IP address of your visitor's computer.
External Javascripts
You don't have to code the Javascript in your web page, you can code it in a separate file and link to it instead.
Modal Dialog Box
A cross browser solution to being ablwe to display a modal dialog box with the content of your choice.
Google Maps - Satellite Images
How to create and use Google Maps.
Google Maps - Latitude and Longitude
How to create and use Google Maps.
Week of Year Date Method
How to add a method to Javascript dates that allows you to get the week number.
Continuous Text Marquee
This script allows you to display one or more marquees containing text that will scroll continuously without a break except when the mouse is moved over them.
Javascript and XHTML
How to put a Javascript on an XHTML page so that it will pass validation.
JavaScript Glossary definition for: menubar
How to Use 'GET' and 'POST' for Server Requests...
When should you use GET and when should you use POST with Ajax.
Hello World
Start writing your own JavaScripts
No Right Click Script
Block the context menu and annoy your visitors with this simple script.
Target Window or Frame
What are the Javascript equivalents to the target attribute on links?
A Brief History of Javascript
What is Javascript, who created it, and who controls the standards?
Everything You Need to Learn JavaScript
Want to use JavaScript on your web pages? There are several alternatives.
JavaScript and JScript : What's the Difference?
JavaScript and JScript, different languages for different browsers.
How the Javascript document.write method works.
Referring Site
How to determine which site your visitor was last on.
Hiding Your Email Address
Conceal your email addressfrom spam spiders.
What Version of Javascript
Determining which version of Javascript is supported by a browser.
Recursive Calls in JavaScript
There are two ways of setting up recursive function calls in JavaScript
Day of Year Date Method
How to add a method to Javascript dates that allows you to get the day of the year.
Daylight Saving Time
How to add methods to the JavaScript Date object that allow you to determine if your visitor is on daylight saving time.
How to attach JavaScript into Your Page.
All you need to add to HTML to add JavaScript into the page is one script tag
Use This Piano Chord Calculator To Play ...
This piano chord calculator displays the notes and fingering positions to help you to play almost any chord on any keyboard.
Last Modified Date
Even where a page doesn't display the last modified date you can easily find it out.
Calendar Generator
Create the HTML code for a calendar to add to your page
Two Types of JavaScript
Some JavaScript code just makes your page look a little nicer and more interactive. Other JavaScript provides more essential functionality.
Returning Multiple Values
How to return more than one value from a function.
Function to Read Parameters Passed Via Q...
How to pass parameters between pages using query strings.
Random Array Sort
How to 'sort' an array in random order.
A Simple Guide to Using "Ternary" Operators in...
The ternary operator provides a shorter way of writing some JavaScript if statements as this example demonstrates.
Adding Days to a Date
How to make it as easy as possible to add or subtract days from a date.
Month and Day Names
Add month and day name methods to your dates.
Adding Javascript from Javascript
Adding code to link to a further external javascript using Javascript.
Reserved Words
A list of Javascript reserved words and other words with special meanings.
The IF Statement
The Javascript if statement.How to code and use it.
How to Write a Session Cookie in Javascript
Web browsers distinguish between three different types of cookies. These types are session cookies, first party cookies, and third party cookies.
Password Generator
Create your own secure passwords that meet certain length and content requirements.
Positioning the Popup Window
Changing the size of the popup window.
Alternatives to eval
There is never any need to use eval in Javascript as there are always better ways to achieve the required result.
Print Directly to Printer
An explanation of some of the reasons why Javascript can't print a page without the print dialog popping up.
Strings to Numbers
How to convert text strings to numbers in JavaScript.
Drop Down List Validation
How to validate that an appropriate entry is selected from a drop down list
Multiple Choice Quiz Script Sample
This example quiz was built with the multiple choice quiz generator.
The CASE Statement
The Javascript case statement. How to code and use it.
Google Maps - Multiple Maps on One Page
How to create and use Google Maps.
Modern Combo Boxes
HTML doesn't have a tag to produce a combo box but we can use JavaScript to create our own.
Cross Browser Ticker/Marquee Example
Add a simple ticker/marquee to your page with this simple Javascript
Why You Shouldn't Use JavaScript in Emails
Why not to use JavaScript with emails? Well there are some good reasons why JavaScript and Emails don't go together.
Continuous Text Marquee Code
This script allows you to display one or more marquees containing text that will scroll continuously without a break except when the mouse is moved over them.
The JavaScript Modulo Bug
The modulo operator in JavaScript does not return the correct value for negative numbers.
First Time Only
Perform processing only when your visitor first visits the page.
setTimeout or setInterval
What is the difference between setTimeout and setInterval?
Addslashes and Stripslashes
How to use addslash and stripslash with Javascript.
Concentration Memory Game with Images Sa...
Put a game of concentration on your site and test your visitor's memory.
Converting IP Addresses
Convert easily betweeen IP address formats with JavaScript.
Using Increment and Decrement Operators in...
For those new to programming the difference between ++i and i++ is not obvious. Here's a simple example to explain the difference.
Disable No Right Click Scripts
Disable no right click scripts that globally override the onclick onmousedown or oncontextmenu events.
Multiple Personality Quiz
Create your own multiple question personality quizes with this quiz maker script.
Sample Hangman
Create your own hangman game with this script maker.
JavaScript Glossary definition for: Long
Submitting after validation
How to submit the form once it has been validated.
Last Day of Month
How to find out the number of days in the current month.
HTML in Javascript
A simple form that will convert HTML source code into Javascript.
Changing the content of an HTML container.
Array Maximum and Minimum Values
Extracting the maximum or minimum value from an array.
Credit Card Validation
Validate credit card numbers in forms with this Javascript routine for validating the length and check digits.
Defining Classes
How to define Classes in Javascript.
Writing Cookies
How to write a cookie with Javascript.
A # by itself in the href attribute is not valid. Sites teaching you how to write HTML and JavaScript use it as a placeholder that should be replaced in live code with a real destination.
Documenting your Javascript.
Follow the Mouse Sample
A simple script to get an object to follow the mouse.
A Quick Guide to Using Child Nodes in Java
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.
Countdown Timer
Provides a countdown to a given date and time.
How to Identify and Fix Common Javascript Errors
Commonly made Javascript errors and how to find them
Analog Clock Script
A javascript to calculate and display a fully customizable analog clock
JavaScript By Example
Br having your function return an object you can pass back as much information as you like by giving the object multiple properties.
JavaScript Date Selection Correcting Days in...
How to fix a date selection dropdown to display the right number of days when the year and month have already been selected.
Quiz Script Generator
Create your own multiple question quizes with this quiz maker script.
What 'Interpreted' and 'Compiled' Means in Java
JavaScript runs as an interpreted language in the web browser. This impacts on how you need to write your code in ways you wouldn't need to worry about if it were compiled.
Getting Started
Introduction to a series of tutorials on programming with JavaScript
Numeric Array Sort
How to sort a numeric array in ascending or descending order.
Here's What JavaScript CAN'T Do
There are a few things that the JavaScript programming language does not let you do
Using Pre-written JavaScript Scripts
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.
Using Modal Dialog Box Javascript
A cross browser solution to being able to display a modal dialog box with the content of your choice.
JavaScript Encryption
Effective encryption using JavaScript
Javascript Format and Colour
Unobfuscate, format, and colour-code a Javascript.
HTML Comments and JavaScript
Why use HTML comments around JavaScript.
Page Events
How to code event handlers to run Javascript code after a page has finished loading or when your visitor leaves the page.
Cross Browser Ticker/Marquee Script RtoL...
Add a simple ticker/marquee to your page with this simple Javascript
Passing Parameters
Functions can process different variables each time when you call them using parameters.
5 Remarkably Good Reasons to Avoid 'Noscript'...
The noscript tag is long past its use by date. Using JavaScript and the DOM gives much better control.
Equals, Equals Equals, or Equals Equals Equals
Using one, two or three equals signs in Javascript depending on what you need to achieve
Copying Objects in Javascript
There is more than one way of copying objects in JavaScript depending on just exactly how you intend using the copy.
Back Button
Providing a way for visitors to return to the previous page that they were on.
Copy and Paste
How to copy and paste Javascripts.
More DOM collections on any tag you like.
Head Scripts and Body Scripts
Where in your web page to put Javascripts.
Alert and Confirm
Introducing the alert and confirm built-in functions.
JavaScript and Unicode
JavaScript can work with unicode as well as ASCII.
Event Listeners
The standard DOM way of listening for events to be triggered.
More DOM collections on any class you like.
Switch Fallthrough
Allowing code to fall through within a switch statement can cause issues in trying to maintain your code and can easily be avoided.
Google Maps - Zooming In and Out
How to create and use Google Maps.
Validate on Submit
How to validate all of the fields on your form immediately prior to the form being submitted.
JavaScript Library or Code Yourself
Should you use a JavaScript library or write all the code yourself. Both ways have advantages and disadvantages.
Window Close
How to close a browser window using Javascript.
Add or Subtract Business Days
How to add a method to Javascript dates that allows you to add or subtract business days from a date.
Semicolons and JavaScript
With JavaScript allowing you to leave out the semicolons on the end of statements you can end up with what you think is a single statement which JavaScript thinks is two separate statements or vice versa.
Add Fireworks
How to add the Fireworks script to your web page.
Typewriter Text Script
Create a web page that looks like it is being typed on a typewriter.
Five Most Common Coding Errors
The five worst pieces of code that people use with Javascript and which you ought to avoid. Page 4.
Submit the form only once
How to stop a form accidentally being submitted twice.
JavaScript for Beginners
Before beginners to JavaScript can start writing their own scripts they first need to understand some of the basic terminology and concepts.
Getting Rid of document.write
The document.write statement was an essential part of early JavaScripts but is now completely unnecessary as anything that can be done with document.write can be done better using innerHTML.
Dynamic Dropdown Three Selects Script
Generate values in one dropdown based on what was selected in a second one.
Add Continuous Text Marquee
This script allows you to display one or more marquees containing text that will scroll continuously without a break except when the mouse is moved over them.
JavaScript Multiple Tests – And, Or, and...
A series of tutorials introducing JavaScript decision making
Built-in Functions: alert, confirm, prompt
JavaScript provides built in functions to display dialog boxes
Timed Window Close
Setting your pupup window to automatically close after a set time.
Fourth Javascript Quiz
Test your knowledge of Javascript alerts, comments, and error finding.
Finding and Fixing Errors
When you write programs your code will contain errors. You need to find and fix those errors.
javascript, example code
To delete a column we need to delete the specific cells in that column.
Continuous Text Vertical Scroller With...
This script allows you to display one or more vertical scrollers containing text that will scroll continuously without a break except when the mouse is moved over them or the stop button is pressed.
Explore JavaScript
By Category
    javascriptJavaScriptcomputeTechb950eefb2a063b7b4e00399d305537ef3a00038e0c006b2ahttp://javascript.about.comod526F6F7412274terminatedStephen Chapmanjavascriptguide3Og00025zNIP11970-01-0110/od/index.htm0526F6F741approved/od
  1. About.com
  2. Tech
  3. JavaScript

©2015 About.com. All rights reserved.