Declaring Variables and Functions
Now it's time to get into some really fun stuff. Yes, variables and functions. Don't worry, it's not as bad as it sounds.....let's start with declaring variables. You'll want to keep all of your variables in the HEAD section for now. Place the declarations between the SCRIPT tags inside the hea...
Type : JavaScript Tutorials
Level : Beginner
Added : Mar 30, 2006
JavaScript Prompts
Well, let's say you wanted to get somebody's name before they saw the page, and then write their name on your page right before their very eyes... Well, you can do this using a javascript prompt. Here's the command:
Type : JavaScript Tutorials
Level : Beginner
Added : Mar 30, 2006
The Basics- JavaScript Tutorial
To get started with JavaScript, you will want to be able to see the tag that will set a script apart from the HTML. The tags used to begin and end a script are the <SCRIPT> and </SCRIPT> tags. The opening tag should appear like this:
Type : JavaScript Tutorials
Level : Beginner
Added : Mar 29, 2006
onMouseover? What's This?
Well, its time to try out your first javascript. This one is nice because we don't have to deal with adding the script tag. This little script will write something of your choice to the browser's status bar when you move your mouse over a link. Let's look at the example:
Type : JavaScript Tutorials
Level : Beginner
Added : Mar 29, 2006
Using Buttons for JavaScripts
To write scripts using buttons, we will first need to know how to place a button on the page. To do this, you will need to use the <FORM> tags around the button tag. Here is an example of the HTML that will place a button on the page:
Type : JavaScript Tutorials
Level : Beginner
Added : Mar 29, 2006
JavaScript Alerts
Well, you want to add one of those JavaScript alert boxes that come out of nowhere, don't you? Okay, let's begin with the alert box that just tells the viewer something you want them to know. Here's the alert command:
Type : JavaScript Tutorials
Level : Beginner
Added : Mar 29, 2006
Shaking Images With Javascript
Create shaking images with JavaScript
Type : JavaScript Tutorials
Level : All levels
Added : Mar 03, 2006
Javascripts For Your Website
Editor's Pick in JavaScript
, February 2006
Here is a list of short but invaluable Java scripts you can insert into your own site code to implement a number of small but extremely useful features.
Type : JavaScript Tutorials
Level : All levels
Added : Feb 28, 2006
Hiding Div Layers After 5 Seconds (Specified Time - X Seconds)
Many things can be done with layers, one of the most useful thing being the navigational drop down menus. Only problem with many HTML editors including Dreamweaver at the moment is that they do not provide an option to close or hide the layers after a specified time. So most of the time you need to ...
Type : JavaScript Tutorials
Level : All levels
Added : Feb 13, 2006
Add Falling Snow using Java Script
<span>Editor's Pick in Java Script, December 2005</span><br/>Have you ever seen the enchanting dance of falling snowflakes? This tutorial will show you how to create your very own Java Script snow on your own web page.
Type : JavaScript Tutorials
Level : All levels
Added : Dec 30, 2005

