如何从谷歌跳转IE,打开指定的网址


html ( jquery注意记得引入 )

 <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="UTF-8">
            <title>Title</title>
            <script src="scripts/jquery-2.1.3.js"></script>
            <style type="text/css">
                .gotoIE {
                    border:1px solid blue;font-size: #fff;
                    width: 100px;
                    padding: 5px 10px;
                }
            </style>
        </head>
        <body>
            <div class="gotoIE">跳转IE浏览器</div>
        <script>
            $(document).ready(function(){
              $(".gotoIE").click(function(){
                var url ='https://www.jianshu.com';
                window.location.href = "openIE:" + url ;// 使用IE打开
              });
            });
    </script>
    </body>
    </html>

新建文件(复制下面代码,最后一行改为自己的IE执行地址,就是exe文件路径),将文件另存为,修改后缀为reg

    Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\openIE]
@="URL:OpenIE Protocol"
"URL Protocol"=""
 
[HKEY_CLASSES_ROOT\openIE\DefaultIcon]
@="iexplore.exe,1"
 
[HKEY_CLASSES_ROOT\openIE\shell]
 
[HKEY_CLASSES_ROOT\openIE\shell\open]
 
[HKEY_CLASSES_ROOT\openIE\shell\open\command]
@="cmd /c set m=%1 & call set m=%%m:openIE:=%% & call \"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %%m%% & exit"

找到刚才新建的文件,鼠标右键 ==》合并 ==》是 ==》 确定,成功之后,打开html页面就可以了

1.jpg
2.jpg
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 请参看我github中的wiki,不定期更新。https://github.com/ivonzhang/Front...
    zhangivon阅读 7,212评论 2 19
  • 个人学习批处理的初衷来源于实际工作;在某个迭代版本有个BS(安卓手游模拟器)大需求,从而在测试过程中就重复涉及到...
    Luckykailiu阅读 4,809评论 0 11
  • web_url 语法: Int Web_url(constchar *name, const char * url...
    社会主义顶梁鹿阅读 869评论 0 0
  • 转载 前端开发面试题 <a name='preface'>前言</a> 本文由我收集总结了一些前端面试题,初学者阅...
    小九喵喵阅读 488评论 0 0
  • 前端开发面试题 面试题目: 根据你的等级和职位的变化,入门级到专家级,广度和深度都会有所增加。 题目类型: 理论知...
    怡宝丶阅读 2,615评论 0 7