<分区>
如何制作 <input type=button>
充当超链接并使用 GET
重定向要求?
<分区>
如何制作 <input type=button>
充当超链接并使用 GET
重定向要求?
最佳答案
你可以制作<button>
标签做这样的 Action :
<a href="http://www.google.com/">
<button>Visit Google</button>
</a>
或:
<a href="http://www.google.com/">
<input type="button" value="Visit Google" />
</a>
它很简单,不需要 javascript!
NOTE:
This approach is not valid from HTML structure. But, it works on many modern browser. See following reference :
关于html - 如何使输入类型=按钮像超链接一样使用获取请求重定向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3303675/