当前位置: 首页 > 图文教程 > 网络编程 > Javascript > IE autocomplete internet explorer''s autocomplete

Javascript
如何用js控制css中的float的代码
Autocomplete Textbox Example javascript实现自动完成成功
FormValid0.5版本发布,带ajax自定义验证例子
wordpress之js库集合研究介绍
推荐发几个常用控件(新加DHTML控件)
7. Microsoft Online-Crash Control, version 6.0(微软在线崩溃控件)
javascript下阻止表单重复提交、防刷新、防后退
javascript下计数器每秒自动加1
给所有的超级练级都加上onmousemove时间的js代码
js实现运行代码需要刷新的解决方法
兼容FF/IE跟随鼠标的层的效果
用javascript获得css中的属性值的代码
用javascript实现页内搜索的脚本代码
用javascript 控制表格行的展开和隐藏的代码
用javascript实现隐藏状态栏的代码
Code: write(s,d) 输出连续字符串
javascript创建页面蒙板的一些知识技巧总结
转自Jquery官方 jQuery1.1.3发布,速度提升800%,体积保持20K
用javascript判断输入数据是否货币并自动添加¥符号的代码
js类中获取外部函数名的方法

Javascript 中的 IE autocomplete internet explorer''s autocomplete


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 114 ::
收藏到网摘: n/a

IE autocomplete

internet explorer's autocomplete

Frequently people are confused by the various dropdown quick-complete boxes in IE. Most people lump them all under the term "AutoComplete." There are actually several features in play, and today I will describe them all.

Typed Urls
Typed Urls appear when you click the down arrow at the right (or left, depending on locale) end of the address bar's edit box. The keyboard shortcut is F4. These items all have an icon to the left. This is a list of the last 25 (or so) urls you have actually typed into the address bar. Only items that you physically type into the address bar are listed here. The list is stored in a registry key. The key is HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs. Each value in the Key is an URL. If you click the Clear History button in the Internet Control Panel (Tools->Options) this entire key is deleted.

AutoComplete
When you start typing in the address bar's edit box and a dropdown appears with suggestions that match what you type, you have discovered AutoComplete. AutoComplete is actually a shell feature. Any application can enable AutoComplete for any edit box by simply calling SHAutoComplete(). AutoComplete in IE will aggregate all the urls in your history, as well as various items in the shell namespace, such as "desktop", "my documents", etc. AutoComplete also aggregates the items in the current user's favorites folder (CSIDL_Favorites). When you add a favorite, a .url file is created in the Favorites folder. The filename is the title of the Web site (with non-NTFS friendly characters removed) or the url if the page has no title. The user is also given an opportunity to specify their own title, though I suspect people rarely do this. If you do specifiy your own title, it makes it very easy to visit frequently visited sites. For example, my test manager adds Amazon.com as a favorite and sets the Name: field to amzn. Then, when he wants to go there, he just types amzn into the address bar and AutoComplete does the work for him. It is important to note that subfolders of the favorites folder are not included in the enumeration. This is for performance reasons, I suspect.

A side note about Favorites: There is another shortcut you can use to quickly access Web sites that are Favorites. Right-Click on a favorite (either in the Menu or the Explorer Bar) and chose properties. You will see just below the URL: field is the Shortcut Key: field. Click in the box and press any key. If you type 1 then Ctrl+Alt+1 will appear in the box. Click OK. Now whenever you press CTRL+ALT+1 Internet Explorer will navigate to that site.