能否利用/控制IE表单自动完成的功能?

mindon 2003-04-15 07:12:09
as title
thx!
...全文
39 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
mindon 2003-04-16
  • 打赏
  • 举报
回复
看来只能打开和关闭这个功能而已,不能用script来控制以便能成为一种 select list 方式的补充?
fason 2003-04-15
  • 打赏
  • 举报
回复
<form autocomplete="on">
孟子E章 2003-04-15
  • 打赏
  • 举报
回复
AUTOCOMPLETE Attribute | autocomplete Property


Sets or retrieves the status of AutoComplete for the object.

Syntax

HTML <ELEMENT AUTOCOMPLETE = sDisabled... >
Scripting object.autocomplete(v) [ = sDisabled ]

Possible Values

sDisabled String that specifies or receives one of the following values.off AutoComplete is disabled.
on AutoComplete is enabled. Any string other than off enables AutoComplete.


The property is read/write. The property has no default value.

Remarks

The AutoComplete feature is highlighted in the AutoComplete in HTML Forms overview.

When AutoComplete is enabled, suggestions are provided for the VALUE of a text field. Suggested values are mapped values based on the NAME attribute or vCard schema specified by the VCARD_NAME attribute.

If AutoComplete is disabled, values are not stored and suggested values are not presented.

While values in input type=password elements can be mapped for AutoComplete, the ability to store this information can be disabled in the browser, and the user is prompted for a confirmation before the value is stored.

Information provided by the AutoComplete feature is not exposed to the object model, and is not visible to a Web page until the user selects one of the suggestions as a value for the text field.

This attribute is not supported in HTML Applications.

Example

This example uses the AUTOCOMPLETE attribute to disable the AutoComplete feature.

<INPUT TYPE="password" AUTOCOMPLETE="off">
youbest 2003-04-15
  • 打赏
  • 举报
回复
最好不要,因为如果用户把自动完成的功能关掉了,有可能影响你的程序,不过如果只是把自动完成功能当作辅助方式的话还是可以尝试使用的.

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧