JS onclick跳转

 onclick="javascript:window.location.href='URL'"
 onclick="location='URL'"
 onclick="window.location.href='URL?id=11'"
如果页面中有frame可以将在location前面添加top.mainframe.frames['right_frame'].location
posted @ 2017-11-20 16:03  安筱雨  阅读(14190)  评论(0编辑  收藏  举报