收藏一些不常用,但是有用的代码
<input type=button value=导入收藏夹 onclick="window.external.ImportExportFavorites(true,'http://localhost');" />
<input type=button value=导出收藏夹 onclick="window.external.ImportExportFavorites(false,'http://localhost');" />
<input type=button value=整理收藏夹 onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" />
<input type=button value=语言设置 onclick="window.external.ShowBrowserUI('LanguageDialog', null)" />
<input type=button value=加入收藏夹 onclick="window.external.AddFavorite('http://www.meizz.com/', '梅花雨中文网')" />
<input type=button value=加入到频道 onclick="window.external.addChannel('http://www.meizz.com/')" />
<input type=button value="打开 Internet 选项" onclick="window.external.showBrowserUI('PrivacySettings', null)" />
IE7添加内置搜索
window.external.AddSearchProvider('xx.xml');
XML的样子是
http://www.microsoft.com/windows/ie/searchguide/spbuilder.mspx?Encoding=UTF-8&Name=aoao.G%20Search&URI=http%3A%2F%2Fwww.google.com%2Fcustom%3Fhl%3Dzh-CN%26newwindow%3D1%26client%3Dgoogle-coop-np%26cof%3DCX%253ASome%252520Search%253B%26q%3DTEST%26cx%3D014628494448926329948%253Amspuqmxeatg