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 刘铮 阅读(330) 评论(0)  编辑  收藏 所属分类: JavaScript


只有注册用户登录后才能发表评论。


网站导航:
 
<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

导航

统计

留言簿(1)

文章分类(141)

文章档案(147)

搜索

最新评论