☆如果是本页显示可以直接用location,方法如下:
①onclick=”javascript:window.location.href=’
URL‘”
URL‘”
②onclick=”location=’
URL‘”
URL‘”
③onclick=”window.location.href=’
URL?id=11′”
URL?id=11′”
☆如果页面中有frame可以将在location前面添加top.mainframe.frames[‘right_frame’].location
链接:http://www.cnblogs.com/JuneZhang/archive/2010/11/25/1887575.html
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/17365.html