Navigation Menu

What's New?
Alphabetical Listing
Site Contents


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

Tight on space? Use this script to create a compact form that is accessible and works even when JavaScript and CSS are turned off.


Notes

A full explanation of the script can be found here.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: accessibleForms.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

5. From: simon
Help
11/27/2007 16:07:28

How can I put a customer rating type thing on this?

6. From: Lee (Admin)
12/04/2007 11:03:42

Due to the limitations of these comments, you will need to submit your question to the JavaScript Forum for further help.

4. From: Bob
This is fantastic
06/11/2007 01:58:07

Hi! This is simply superb! This will also help a lot of folks who are fighting their life to creat multipage forms with the likes of PHP etc.! Amazing!!

What is the browser compatibility of this? I saw it working stupendously in IE 6...is it cool with opera, firefox and netscape as well?

3. From: M.P.
04/21/2007 16:04:34

I believe it has a title if you hover over it.

Very nice code!


2. From: Jorge Papadopolo
01/04/2007 10:17:16

Nice thinking;
just to add up to this idea; would be great to add a layer popup message when the field is focus()ed so you allways have a label of what type of data is required

1. From: josh
12/22/2006 11:05:54

FORM#login {
position: relative;
}

DIV#username, DIV#password {
position: relative;
float: left;
margin-right: 3px;
}

INPUT#username-field, INPUT#password-field {
width: 10em;
}

LABEL.overlabel {
position: absolute;
top: 3px;
left: 5px;
z-index: 1;
color: #999;
}



Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.