You are here: Reference > JavaScript > client-side > HTML DOM > properties > vcard_name (input(password, text))
vcard_name property (input(password, text))
Specifies or returns the vCard type to use for the Autocomplete box.
Setting the value of the vcard_name property causes the contents of the Autocomplete window to depend on
the value of this property only, regardless of the value of the name property.
If the value of the vcard_name property is not specified,
the contents of the Autocomplete window depend on the value of the name property.
To enable Autocomplete windows, see the page for the autocomplete property.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: vCard_name |
Possible values:
String that sets or retrieves the schema to use for the AutoComplete box.
One of the following values:
Indicates the vCard.Business.City schema to the input field. | |||||||
Indicates the vCard.Business.Country schema to the input field. | |||||||
Indicates the vCard.Business.Fax schema to the input field. | |||||||
Indicates the vCard.Business.Phone schema to the input field. | |||||||
Indicates the vCard.Business.State schema to the input field. | |||||||
BIndicates the vCard.Business.StreetAddress schema to the input field. | |||||||
Business Indicates the vCard.Business.URL schema to the input field. | |||||||
Indicates the vCard.Business.Zipcode schema to the input field. | |||||||
Indicates the vCard.Cellular schema to the input field. | |||||||
Indicates the vCard.Company schema to the input field. | |||||||
Indicates the vCard.Department schema to the input field. | |||||||
Indicates the vCard.DisplayName schema to the input field. | |||||||
Indicates the vCard.Email schema to the input field. | |||||||
Indicates the vCard.FirstName schema to the input field. | |||||||
Indicates the vCard.Gender schema to the input field. | |||||||
Indicates the vCard.Home.City schema to the input field. | |||||||
Indicates the vCard.Home.Country schema to the input field. | |||||||
Indicates the vCard.Home.FAX schema to the input field. | |||||||
Indicates the vCard.Home.Phone schema to the input field. | |||||||
Indicates the vCard.Home.State schema to the input field. | |||||||
Indicates the vCard.Home.StreetAddress schema to the input field. | |||||||
Indicates the vCard.Home.Zipcode schema to the input field. | |||||||
Indicates the vCard.Homepage schema to the input field. | |||||||
Indicates the vCard.JobTitle schema to the input field. | |||||||
Indicates the vCard.LastName schema to the input field. | |||||||
Indicates the vCard.MiddleName schema to the input field. | |||||||
Indicates the vCard.Notes schema to the input field. | |||||||
Indicates the vCard.Office schema to the input field. | |||||||
Indicates the vCard.Pager schema to the input field. |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the vCard_name attribute:
|
||||
Type an e-mail address then submit it! <form method="post"> <input type="text" name="email" vcard_name="vCard.Email" /> <input type="submit" /> </form> After submitting, start to type the same e-mail address as before. |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the vCard_name property:
|
||||
<head> <script type="text/javascript"> function GetVCardName () { var emailInput = document.getElementById ("email"); if ('vcard_name' in emailInput) { alert (emailInput.vcard_name); } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> Type an e-mail address and then submit it! <form> <input type="text" name="email" id="email" vcard_name="vCard.Email" /> <input type="submit" /> </form> After submitting, start to type the same e-mail address as before. <br /><br /> <button onclick="GetVCardName ();">Get vcard_name settings!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
External links:
User Contributed Comments