Javascript中window.open()与window.location.href的区别

window.location.href="www.javaweb.cc"; 表示重新定向到新页面,同时刷新打开的这个页面;

eg:

<tr><td >打开java学习网</td><td><img alt="" src="Images/small.gif" /></td></tr>

<tr><td >打开java学习网</td><td><img alt="" src="Images/small.gif" /></td></tr>

这两个的效果不同

评论

暂无评论