Mark Forums Read
  #1  
Old 04-10-2009, 07:18 AM
ajit22 ajit22 is offline
Member
 
Join Date: Jan 2009
Posts: 54
ajit22 is on a distinguished road
Default password Object

In a form, a password object is a text field that hides the reader's entry by displaying an asterisk (*) for each character typed. A password object is a form element that must be defined with an <INPUT> tag between a pair of <FORM>...</FORM> tags. The password object is a property of the larger form object.

To create a password object, use Insert > Form Field > Text > Password. To create a password field manually, place an <INPUT type='password'...> tag between a pair of <FORM>...</FORM> tags.

Code:
<FORM> <INPUT TYPE="password" NAME="ReaderPassword"VALUE="" MAXLENGTH="16" SIZE=16 > </FORM>
__________________
New York Web design
Website design

Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
  #2  
Old 06-20-2009, 09:34 AM
gkumar gkumar is offline
Senior Member
 
Join Date: Jun 2009
Posts: 203
gkumar is on a distinguished road
Default

The password field (<input type="password">) within your form can be accessed and manipulated using JavaScript via the corresponding Password object. To access a button in JavaScript,
The syntax:

Quote:
document.myform.passwordfield //where myform and passwordfield are names of your form/element.
document.myform.elements[i] //where i is the position of the field within form
Events:-
1. onBlur
Description:- Code is executed when the focus is removed from the password field.

2. onFocus
Description:- Code is executed when the focus is set on the password field.


Properties:-
1. disabled
Description:- Boolean value that sets/ returns whether the field is disabled.
2. form
Description:- References the form that contains the password field.
3. name
Description:- Reflects the name of the password field (the name attribute).
4. type
Description:- A property available on all form elements, "type" returns the type of the calling form element, in this case, "password".
5. value
Description:- A read/write string that specifies the value of the password field. Note that due to security reasons, some browsers may not return the actual value of the password when this property is invoked.


Methods:-
1. blur()
Description:- Removes focus away from the password field.
2. focus()
Description:- Sets focus on the password field.
3.select()
Description:- Selects the input area of the password field.
Reply With Quote
 #Add to Ads's Reputation  
OldSponsored Ads
Ads AdsPromoter is online
Member
 
Join Date: LongTime
Posts: 1100
Ads is on a distinguished road
Default New Sponsored Ads



This message will go away once you are registered. Also, by registering, you will have access to all post topics, communicate privately with other members (PM), respond to polls, upload graphics, and access other special features! Registration is fast, simple and absolutely free so please Click Here to join our Web Hosting community today!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:30 PM.


Powered by vBulletin Version 3.6.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.4.0