window.open和window.location

window.open是打开新窗口。
window.location是将本页替换了,也就是定位。

例如:

<input   type="button"     value="转向"   onclick="window.open('default.htm')">

<input   type="button"     value="转向"    onclick="window.location='default.htm';">      

posted on 2007-04-12 12:07 A++ 阅读(1028) 评论(1)  编辑  收藏

评论

# re: window.open和window.location 2008-08-18 16:35 佛挡杀佛

大方的师傅  回复  更多评论   


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


网站导航:
 
<2007年4月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

导航

统计

常用链接

留言簿(3)

随笔分类

随笔档案

http://www.matrix.org.cn/resource/article/2005-10-16/Generic_Types_43864.html

搜索

最新评论

阅读排行榜

评论排行榜