如果是本页显示可以直接用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
例:<input type="button"value="注册" onclick="javascript:window.location.href='register.php'"/>
553



被折叠的 条评论
为什么被折叠?



