1.external.AddDesktopComponent 把网站作为用户的Active桌面
语法:external.AddDesktopComponent(地址,类型[image/website],左距离,顶距离,宽度,长度)
function j_adc(){ //例子
window.external.AddDesktopComponent("http://www.i0713.net","website",0,0,800,600);
}
2.external.AddFavorite 把网站加入到用户的收藏夹
语法:external.AddFavorite(网址,标题);
function j_af(){
window.external.AddFavorite(location.href, document.title);
}
3.external.NavigateAndFind 搜索指定网站中的某个字段
语法:external.NavigateAndFind(文件地址,关键字,_Target)
<script language="javascript">
function j_an(){
window.external.NavigateAndFind("http://www.i0713.net/IT/prog/find.asp",gosearch.value,"");
}
</script>
4.external.ShowBrowserUI 调用语言选择窗口与收藏夹管理窗口
语法:external.ShowBrowserUI(类型[LanguageDialog/OrganizeFavorites], null)
<input type="button" name="Button" value="语言设置" οnclick="window.external.ShowBrowserUI('LanguageDialog', null)">
<input type="button" name="Submit2" value="整理收藏夹" οnclick="window.external.ShowBrowserUI('OrganizeFavorites', null)">
5.external.ImportEXPortFavorites 导入与导出用户收藏夹
语法:external.ImportExportFavorites(导入/true 导出/false, 文件路径)
<input type="button" name="Button" value="导入收藏夹" onClick=window.external.ImportExportFavorites(true,"http://www.i0713.net");>
<input type="button" name="Button3" value="导出收藏夹" onClick=window.external.ImportExportFavorites(false,"http://www.i0713.net");>
window.external的使用
最新推荐文章于 2022-08-20 11:21:28 发布