Loading...

More materials by author - Page 1

in JavaScript
Using Link Tags with JavaScript

I get this question so much, I figured I'd better get in gear and write another section to address using the link tag for javascripts (such as new windows), rather than using the old grey button. Well, there are a couple of ways to do this. I'll start with the easier to understand version first.

read more
in JavaScript
JavaScript Redirection

Redirection is often used to take viewers to a page depending on their browser's name or version. To redirect a viewer instantly, you just need to add a short command in your head section:

read more
in JavaScript
JavaScript Browser Detection

Browser detection allows you to find out what browser your viewer is using, and then perform a script based on it - or just to send a friendly message to those with your favorite browser.

read more
in JavaScript
JavaScript Confirmation Boxes

A javascript confirmation box can be a handy way to give your visitors a choice of whether or not an action is performed. A confirmation box will pop up much like an alert box, but will allow the viewer to press an "OK" or "Cancel" button.

read more
in JavaScript
JavaScript Password Protection

OK, I finally got around to writing the javascript password protection tutorial. You will see the example script here is pretty straightforward, but it is also pretty easy to get around. I'll tell you why and give you links to more secure scripts later in this tutorial.

read more
in JavaScript
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:

read more
in JavaScript
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...

read more
in JavaScript
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:

read more
in JavaScript
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:

read more

Copyright © All Rights Reserved