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 劉錚 閱讀(432) 評論(0)  編輯  收藏 所屬分類: JavaScript

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          留言簿(1)

          文章分類(141)

          文章檔案(147)

          搜索

          最新評論

          主站蜘蛛池模板: 凌云县| 塔城市| 涿鹿县| 龙井市| 涿州市| 韩城市| 丹凤县| 武强县| 台南县| 宁德市| 靖边县| 高碑店市| 永泰县| 定结县| 比如县| 云林县| 南郑县| 怀远县| 木兰县| 林口县| 墨玉县| 马龙县| 金溪县| 灌云县| 乳源| 京山县| 江都市| 西和县| 鄱阳县| 出国| 东平县| 岚皋县| 定陶县| 壶关县| 周至县| 台北市| 曲周县| 德清县| 祁门县| 建始县| 潢川县|