JavaScript 中改變當(dāng)前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對(duì)象和document對(duì)像的屬性,所以window.location和document.location是相同的,可以相互使用
posted on 2007-09-11 15:36 劉錚 閱讀(429) 評(píng)論(0) 編輯 收藏 所屬分類: JavaScript