This tutorial will show you how to create a JavaScript-enabled form that checks whether a user has filled in the form correctly before it’s sent to the server. This is called form validation. First we’ll explain why form validation is a useful thing, and then build up a simple example form, explaining things as we go along. At the end, there’s a little exercise to keep you busy too!
JavaScript
Covers JavaScript, the most popular browser scripting language, and some clever tips & tricks.
See also:Making a Rollover Menu Bar
This Photoshop 4 tutorial (also works with later versions of Photoshop) is quite a big one. I’ll show you how to make one of those trendy menus that look like one image, but are in fact several images joined together, with each image changing as the mouse moves over them. Oh, words will never do – take a look at it in action!
Rollover Buttons with JavaScript
These days every man and his dog is using JavaScript to create “rollover”, or “mouse-sensitive” buttons on their site. If you’re not sure what I’m talking about, move your mouse over this baby:
Get the idea?
[Read more…] about Rollover Buttons with JavaScript
A Simple JavaScript Drop-down Menu
In this tutorial we’re going to design a simple menu system using JavaScript and an HTML form containing a SELECT
list.
Opening Windows with JavaScript
One of the most useful (and quite possibly the most abused) features of JavaScript is its ability to manipulate browser windows. It can be very handy for creating a pop-up navigation.
Multiple pop-up windows can be a real pain, especially now that certain free web space companies are getting in on the act as a method of advertising, so go easy on them. A good rule of thumb is: if you’re opening two new windows, you’re opening one too many!
Introduction to JavaScript
JavaScript’s a great language. I love it. It may not have the speed or power of Java or C, or the tight integration of ActiveX, but on the plus side it’s interpreted (no messing about with compilers), fast to load, easy to debug and it embeds itself neatly into your web page.
Most important of all, it’s easy to learn. Hopefully if you’re fairly new to the language, these tips will help get you started. Even seasoned JavaScript coders may learn a thing or two from these tips – you never know!
This tutorial shows you how to get started with JavaScript. We’ll look at how to embed JavaScript in your web page, and how JavaScript talks to your web browser. I’ll illustrate these points by building a simple program to display an alert box when the page is first loaded.