I am making a prototype and I want the search button to link to a sample search results page.
当使用jQuery或普通JS单击按钮时,如何使其重定向到另一个页面.
I am making a prototype and I want the search button to link to a sample search results page.
当使用jQuery或普通JS单击按钮时,如何使其重定向到另一个页面.
没有脚本:
<form action="where-you-want-to-go"><input type="submit"></form>
更好的是,因为你只是go 某个地方,所以向用户展示"只是go 某个地方"的标准界面:
<a href="where-you-want-to-go">ta da</a>
Although, the context sounds like "Simulate a normal search where the user submits a form", in which case the first option is the way to go.