问题描述
我正在寻找完整的表单字段名称列表(< input name =...>
),这些名称可以被主要浏览器中的自动填写功能识别。
下面是我发现在Safari中使用反复试验的一些工作:
电子邮件
Ecom_ReceiptTo_Postal_Name_First
Ecom_ReceiptTo_Postal_Name_Last
first-name
firstname
last-name
姓氏
全名
生日
公司
jobtitle
手机
street
city
country
州
(用于美国以外的县)
postalcode
zip
如何我无法找到标题/敬语前缀的单独字段(它仅包含在全名中)。
Opera的魔杖可识别大致相同的名称,但名称,要求 Ecom_ReceiptTo_Postal_Name_First
和 Ecom_ReceiptTo_Postal_Name_Last
。
找不到手机号码的字段。没有找到方法来获得单独的家庭/工作领域。
有建议,以便开发者明确指定。
我不知道您使用的名称。但我知道Mozilla / Netscape和IE使用vcard_name属性来指导自动填充,如。
I'm looking for complete list of form field names (<input name="…">
) that are recognized by auto-fill functions in major browsers.
Here are some I've found to work in Safari using trial-and-error:
email
Ecom_ReceiptTo_Postal_Name_First
Ecom_ReceiptTo_Postal_Name_Last
first-name
firstname
last-name
lastname
full-name
birthday
company
jobtitle
phone
street
city
country
state
(used for county outside US)postalcode
zip
However I couldn't find separate field for title/honorific prefix (it's included in full name only).
Opera's Wand recognizes more or less the same names with exception of name, which requires Ecom_ReceiptTo_Postal_Name_First
and Ecom_ReceiptTo_Postal_Name_Last
.
I couldn't find field for mobile phone number. Haven't found way to get separate home/work fields.
There's proposal to extend autocomplete
attribute to allow developers specify these explicitly.
I wasn't aware of the names you used. But I knew Mozilla/Netscape and IE use vcard_name attributes to guide autofill as described here.
这篇关于个人数据在浏览器中自动填充的表单字段名称(Safari,Opera)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!