You are here: Reference > JavaScript > client-side > HTML DOM > properties > vcard_name (input(password, text))

vcard_name property (input(password, text))

Browser support:
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:

object.vcard_name;
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:
vCard.Business.City
Indicates the vCard.Business.City schema to the input field.
vCard.Business.Country
Indicates the vCard.Business.Country schema to the input field.
vCard.Business.Fax
Indicates the vCard.Business.Fax schema to the input field.
vCard.Business.Phone
Indicates the vCard.Business.Phone schema to the input field.
vCard.Business.State
Indicates the vCard.Business.State schema to the input field.
vCard.Business.StreetAddress
BIndicates the vCard.Business.StreetAddress schema to the input field.
vCard.Business.URL
Business Indicates the vCard.Business.URL schema to the input field.
vCard.Business.Zipcode
Indicates the vCard.Business.Zipcode schema to the input field.
vCard.Cellular
Indicates the vCard.Cellular schema to the input field.
vCard.Company
Indicates the vCard.Company schema to the input field.
vCard.Department
Indicates the vCard.Department schema to the input field.
vCard.DisplayName
Indicates the vCard.DisplayName schema to the input field.
vCard.Email
Indicates the vCard.Email schema to the input field.
vCard.FirstName
Indicates the vCard.FirstName schema to the input field.
vCard.Gender
Indicates the vCard.Gender schema to the input field.
vCard.Home.City
Indicates the vCard.Home.City schema to the input field.
vCard.Home.Country
Indicates the vCard.Home.Country schema to the input field.
vCard.Home.Fax
Indicates the vCard.Home.FAX schema to the input field.
vCard.Home.Phone
Indicates the vCard.Home.Phone schema to the input field.
vCard.Home.State
Indicates the vCard.Home.State schema to the input field.
vCard.Home.StreetAddress
Indicates the vCard.Home.StreetAddress schema to the input field.
vCard.Home.Zipcode
Indicates the vCard.Home.Zipcode schema to the input field.
vCard.Homepage
Indicates the vCard.Homepage schema to the input field.
vCard.JobTitle
Indicates the vCard.JobTitle schema to the input field.
vCard.LastName
Indicates the vCard.LastName schema to the input field.
vCard.MiddleName
Indicates the vCard.MiddleName schema to the input field.
vCard.Notes
Indicates the vCard.Notes schema to the input field.
vCard.Office
Indicates the vCard.Office schema to the input field.
vCard.Pager
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? yes no

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? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content