Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
 Discussion Forums
 HTML, XML, JavaScript...
 Software Reviews
 Editors,Others...
 Top100
 JavaScript Tutorials, ...
 Tutorials
 ASP, CSS, Databases...
 Discussion List
 FAQ, Roundup, Configure ...
 Authoring
 HTML, JavaScript, CSS...
 Design
 Layout, Navigation,...
 Graphics
 Tools, Colors, Images...
 Software
 Browsers, Editors, XML...
 Internet
 Domains, E-Commerce, ...
 WDVL Resources
  Intermdiate, Tutorials,...
 WDVL
 Discussion Lists, Top 100,...
 Technology Jobs


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















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

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

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


Top 10 Articles
  1. Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
  2. JavaScript Tutorial for Programmers
  3. Design
  4. JavaScript Tutorial for Programmers - Objects
  5. JavaScript Tutorial for Programmers - JavaScript Grammar
  6. JavaScript Tutorial for Programmers - Versions of JavaScript
  7. Cascading Style Sheets
  8. JavaScript Tutorial for Programmers - Embedding JavaScript
  9. JavaScript Tutorial for Programmers - Functions
  10. Authoring JavaScript
Domain Name Lookup
Search to find the availability of a domain name. Just enter the complete domain name with extension (.com, .net, .edu)

The Password Widget

The Password Widget

  • A Password Widget is simply a Text Field in which the user data is masked so that nobody looking over the user's shoulder can read what was typed in. Try out the following example:

    Behind the scenes, the above password field was created with the following HTML code

        <FORM>
        <INPUT 	TYPE 	= "PASSWORD"
    		NAME 	= "pass"
    		>
        </FORM>
    

It is important to know that this field does not offer any form of real security. The value typed in to the password widget is still sent over the internet as unencrypted plain text. The only security this widget offers is the security of preventing an office worker from looking over your shoulder.

  • The Password widget also has several other attributes which affect how it works. The following table outlines them:

Attribute Description
TYPE Specifies the type of interface widget. For a password widget, you use "PASSWORD"
NAME Specifies the variable name associated with this widget
VALUE Specifies initial default text which should appear in the password field
MAXLENGTH Specifies the maximum number of characters allowed to be input into the widget
SIZE Specifies the width of the field

  • Let's take a closer look at each of these attributes.

The VALUE Attribute

  • The VALUE attribute allows you to specify default text. Here is an example:

    And here is the code which we used to make that password field.

        <FORM>
        <INPUT 	TYPE 	= "PASSWORD"
    		NAME 	= "password" 
    	        VALUE 	= "default text"
    		>
        </FORM>
    

The MAXLENGTH Attribute

  • The MAXLENGTH attribute allows you to specify the maximum number of characters allowed for input. Here is an example which only allows you to type in 5 characters. Try it out for yourself:

    And here is the code which we used to make that password field.

        <FORM>
        <INPUT 	
    	TYPE = "PASSWORD"
         	NAME = "demo" 
         	MAXLENGTH = "5"
    	>
        </FORM>
    

The SIZE Attribute

  • The SIZE attribute allows you to specify the width of the text field itself. Here are two examples which show the attribute being used:

    And here is the code which we used to make the password fields.

        <FORM>
        <INPUT 	TYPE	= "PASSWORD"
    		NAME 	= "demo"
    		SIZE 	= "30"
    		>
        <INPUT 	TYPE 	= "PASSWORD"
    		NAME 	= "demo"
    		SIZE 	= "20"
    		>
        </FORM>
        

The Text Field Widget
Table of Contents
The Check Box Widget


Up to => Home / Authoring / Scripting / Tutorial




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers