电脑技术学习

JS实现浏览器菜单命令

dn001

JS实现浏览器菜单命令

<object;id=min;classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"><param;name="Command";value="Minimize"></object>

<object;id=max;classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"><param;name="Command";value="Maximize"></object>

<object;id=close;classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><PARAM;NAME="Command";value="Close"></object>;

<input;type=button;value=最小化;onclick=min.Click()>;

<input;type=button;value=最大化;onclick=max.Click()>;

<input;type=button;value=关闭;onclick=close.Click()></div>

<INPUT;type=button;onclick="document.execCommand('open')";value=打开>

<INPUT;type=button;onclick="document.execCommand('saveas')";value=保存>

<INPUT;type=button;onclick="document.execCommand('print')";value=打印>

<INPUT;type=button;onclick="document.execCommand('selectall')";value=全选>

<INPUT;type=button;onclick="location.replace('view-source:'+location)";value=源文件>

<INPUT;type=button;onclick="window.external.ShowBrowserUI('PrivacySettings',null)";value=安全选项>

<input;type=button;onClick="window.external.ShowBrowserUI('LanguageDialog',;null)";value=语言设置>

<INPUT;type=button;onclick="window.external.AddFavorite(location.href,;document.title)";value=加入收藏夹>

<INPUT;type=button;onclick="window.external.ShowBrowserUI('OrganizeFavorites',;null)";value=整理收藏夹>

<INPUT;onclick=history.go(-1);type=submit;value=后退>

<INPUT;onclick=history.go(1);type=submit;value=前进>

<input;type=button;value=刷新;name=refresh;onclick="window.location.reload()">

<input;type="button";value="导入收藏夹";onClick=window.external.ImportExportFavorites(true,');>

<input;type="button";value="导出收藏夹";onClick=window.external.ImportExportFavorites(false,');>

源自中国IT动力