久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      html/JavaScript怎么跳轉(zhuǎn)頁(yè)面

      跳轉(zhuǎn)頁(yè)面的方法:1、html中可以利用meta標(biāo)簽進(jìn)行跳轉(zhuǎn),語(yǔ)法“”;2、javascript中可以利用location對(duì)象的href屬性進(jìn)行跳轉(zhuǎn),語(yǔ)法“window.location.href=頁(yè)面地址”。

      html/JavaScript怎么跳轉(zhuǎn)頁(yè)面

      本教程操作環(huán)境:windows7系統(tǒng)、javascript1.8.5版、Dell G3電腦。

      html/JavaScript實(shí)現(xiàn)頁(yè)面跳轉(zhuǎn)

      1、html中使用meta中跳轉(zhuǎn),通過(guò)meta可以設(shè)置跳轉(zhuǎn)時(shí)間和頁(yè)面

      <head>     <!--只是刷新不跳轉(zhuǎn)到其他頁(yè)面 -->     <meta http-equiv="refresh" content="5">     <!--定時(shí)轉(zhuǎn)到其他頁(yè)面 -->     <meta http-equiv="refresh" content="5;url=index.html">  </head>

      2、通過(guò)javascript中實(shí)現(xiàn)跳轉(zhuǎn)

      1 // 直接跳轉(zhuǎn) 2 window.location.href='index.html'; 3 // 定時(shí)跳轉(zhuǎn) 4 setTimeout("javascript:location.href='index.html'", 5000);

      html跳轉(zhuǎn)上一頁(yè)的方式

      window.history.go(-1);或者window.history.back(-1);

      <script type="text/javascript">     var wrong = document.getElementById('btn');     wrong.onclick = function() {      window.history.go(-1);//返回上一頁(yè)      window.history.back(-1);//返回上一頁(yè)    } </script>

      在html中寫

      <a href=”#” onClick=”JavaScript :history.back(1);”>返回上一頁(yè)</a> <a href=”#” onClick=”javascript :history.Go(-1);”>返回上一頁(yè)</a>

      【推薦學(xué)習(xí):javascript高級(jí)教程】

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)