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