IE autocomplete internet explorer's autocomplete


Posted in Javascript onJune 30, 2007

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.

Javascript 相关文章推荐
让新消息在网页标题闪烁提示的jQuery代码
Nov 04 Javascript
javascript操作select元素实例分析
Mar 27 Javascript
Vue.js常用指令之循环使用v-for指令教程
Jun 27 Javascript
详解vue.js之绑定class和style的示例代码
Aug 24 Javascript
JS实现常见的查找、排序、去重算法示例
May 21 Javascript
详解VUE自定义组件中用.sync修饰符与v-model的区别
Jun 26 Javascript
vue interceptor 使用教程实例详解
Sep 13 Javascript
VuePress 静态网站生成方法步骤
Feb 14 Javascript
javascript中undefined的本质解析
Jul 31 Javascript
JavaScript常用工具函数汇总(浏览器环境)
Sep 17 Javascript
vue 通过base64实现图片下载功能
Dec 19 Vue.js
JS 基本概念详细介绍
Oct 16 Javascript
用javascript实现的激活输入框后隐藏初始内容
Jun 29 #Javascript
javascritp实现input输入框相关限制用法
Jun 29 #Javascript
优化网页之快速的呈现我们的网页
Jun 29 #Javascript
javascript实现动态CSS换肤技术的脚本
Jun 29 #Javascript
javascript之锁定表格栏位
Jun 29 #Javascript
javascript之解决IE下不渲染的bug
Jun 29 #Javascript
JavaScript与C# Windows应用程序交互方法
Jun 29 #Javascript
You might like
一个简单的PHP入门源程序
2006/10/09 PHP
删除html标签得到纯文本可处理嵌套的标签
2014/04/28 PHP
php格式化json函数示例代码
2016/05/12 PHP
php与c 实现按行读取文件实例代码
2017/01/03 PHP
在Laravel5中正确设置文件权限的方法
2019/05/22 PHP
JQuery 绑定select标签的onchange事件,弹出选择的值,并实现跳转、传参
2011/01/06 Javascript
关于js datetime的那点事
2011/11/15 Javascript
JavaScript阻止事件冒泡示例分享
2014/12/28 Javascript
JS+CSS实现Li列表隔行换色效果的方法
2015/02/16 Javascript
纯js三维数组实现三级联动效果
2017/02/07 Javascript
通过jquery获取上传文件名称、类型和大小的实现代码
2018/04/19 jQuery
layer.confirm取消按钮绑定事件的方法
2018/08/17 Javascript
JavaScript作用域链实例详解
2019/01/21 Javascript
微信小程序webview实现长按点击识别二维码功能示例
2019/01/24 Javascript
JavaScript常用内置对象用法分析
2019/07/09 Javascript
javascript合并两个数组最简单的实现方法
2019/09/14 Javascript
微信小程序wx.navigateTo方法里的events参数使用详情及场景
2020/01/07 Javascript
vue-cli4项目开启eslint保存时自动格式问题
2020/07/13 Javascript
TypeScript 引用资源文件后提示找不到的异常处理技巧
2020/07/15 Javascript
js+h5 canvas实现图片验证码
2020/10/11 Javascript
Python中字符串格式化str.format的详细介绍
2017/02/17 Python
python中利用await关键字如何等待Future对象完成详解
2017/09/07 Python
python机器人行走步数问题的解决
2018/01/29 Python
python3模块smtplib实现发送邮件功能
2018/05/22 Python
Python如何爬取b站热门视频并导入Excel
2020/08/10 Python
python自动提取文本中的时间(包含中文日期)
2020/08/31 Python
Python Opencv轮廓常用操作代码实例解析
2020/09/01 Python
canvas 基础之图像处理的使用
2020/04/10 HTML / CSS
大学生优秀的自我评价分享
2013/10/22 职场文书
最新的互联网创业计划书
2014/01/10 职场文书
医院安全生产月活动总结
2014/07/05 职场文书
党员干部群众路线个人整改措施
2014/09/18 职场文书
创业计划书之少年玩具店
2019/09/05 职场文书
Angular性能优化之第三方组件和懒加载技术
2021/05/10 Javascript
Python经常使用的一些内置函数
2022/04/11 Python
Redis sentinel哨兵集群的实现步骤
2022/07/15 Redis