JavaScript 中改變當前window和frame的page的方法


          可以使用location

          To load a different page into the current window or frame, assign the new page's URL string to the location.href property:

          location.href=http://www.megacorp.com/products/framistan309.html;
           
           
          location是window對象和document對像的屬性,所以window.location和document.location是相同的,可以相互使用

          posted on 2007-09-11 15:36 劉錚 閱讀(429) 評論(0)  編輯  收藏 所屬分類: JavaScript

          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 安庆市| 汉阴县| 定襄县| 河南省| 江孜县| 阿荣旗| 辽宁省| 东乌珠穆沁旗| 精河县| 曲水县| 麻阳| 荆门市| 任丘市| 庆阳市| 信宜市| 稷山县| 丹棱县| 金湖县| 江永县| 红桥区| 陆良县| 林西县| 弋阳县| 雷山县| 大埔区| 社会| 庄河市| 广饶县| 永城市| 雷波县| 广南县| 庆阳市| 杂多县| 浮山县| 固原市| 渝中区| 雷州市| 甘南县| 察哈| 沾化县| 滁州市|