zoukankan      html  css  js  c++  java
  • javascript跳转页面

     <script type="text/javascript">
            function openNewTab() {
                parent.addExampleTab({
                    id: arguments[0],
                    iframeUrl: arguments[1],
                    title: arguments[2],
                    iconFont: arguments[3],
                    refreshWhenExist: true
                });
            }
        </script>
    第一种:(跳转到b.html)
    <script language="javascript" type="text/javascript">
    window.location.href="b.html";
    </script>
    第二种:(返回上一页面)
    <script language="javascript">
    window.history.back(-1);
    </script>
    第三种:
    <script language="javascript">
    window.navigate("b.html");
    </script>
    第四种:
    <script language="JavaScript">
    self.location=’b.html’;
    </script>
    第五种:
    <script language="javascript">
    top.location=’b.html’;
    </script>

     参考:https://www.cnblogs.com/2019gdiceboy/p/11731158.html

  • 相关阅读:
    HandlerThread
    handler原理
    死锁简析
    Android序列化
    AsyncTask原理
    【java线程池】
    java创建线程的三种方式
    service相关
    【hashMap】详谈
    【activity任务栈】浅析
  • 原文地址:https://www.cnblogs.com/wangjp-1233/p/10548946.html
Copyright © 2011-2022 走看看