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
原文地址:https://www.cnblogs.com/anxiaoyu/p/7866742.html