[转]使用onclick跳转到其他页面/跳转到指定url

如果是本页显示可以直接用location,方法如下:

  ①onclick="javascript:window.location.href='URL'"
  ②onclick="location='URL'"
  ③onclick="window.location.href='URL?id=11'"
如果页面中有frame可以将在location前面添加top.mainframe.frames['right_frame'].location
转自——————http://www.cnblogs.com/JuneZhang/archive/2010/11/25/1887575.html
 
posted @ 2015-05-11 09:59  小小——开心  阅读(854)  评论(0)    收藏  举报