使用onclick
如果是本頁顯示可以直接用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
使用submit
使用form表單創建一個只有submit按鈕的表單,單擊提交即可
<form action="URL" name="表單名" method="get">
<table><td colspan="2"><input type="submit" value="注冊"></td></table>--%>
</form>
