html button v.s. html submit?

后端 未结 6 1368
南旧
南旧 2020-12-09 19:14

I have an input text box and a search submit button, and when user clicks the Search submit button, I want to redirect user to url http://testsearch/results.aspx?k=<

6条回答
  •  醉话见心
    2020-12-09 19:39

    If I'm understanding correctly, it is not working because it is not in a form tag. If you put it in a form tag with method="get" it should work. The button works because it does not have to be in a form.

提交回复
热议问题