这些是我收集的一部分, 抛砖引玉吧:
<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=导入收藏夹 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/')">
解决方案 »
- 在div里边滚动鼠标,让div自动适应 浏览器窗口高度
- if (typeof(123)="number") {} ,这个判断语法哪错了,为何过不去呢?
- 像弹出CSDN上弹出结帖的对话框怎么实现`
- 解析xml
- 获取select的值!?急!
- 帮忙?关于模板中的菜单!急急急,在线等!!!
- 页面中插入iframe页面,然后iframe页面window.open新窗口,然后新窗口window.opener取值iframe中的input text 失败
- 分割字符串
- 能否屏蔽ALT+F4与F5键???
- 用JQ收集到网页页面的数据传回后台,后台为什么运行不了,
- 请教高手如何用JAVASCRIPT或其他语言页面上画出甘特图
- 一个高难度的问题?
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/external.asp
不过肯定不是所有的功能都能控制的
>>双击浏览器右下的电脑图标
双击浏览器右下的电脑图标 <=> 代码操作???
function exec (command) {
window.oldOnError = window.onerror;
window._command = command;
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('命令' + window._command + ' 已经被用户禁止!');
return true;
}
else return false;
};
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run(command);
window.onerror = window.oldOnError;
}
</script><input type=button onclick="exec('RunDLL32.exe Shell32.dll,Control_RunDLL InetCpl.cpl,,1')" value=运行Internet选项>