如何在html页面跳转action

html-css010

如何在html页面跳转action,第1张

<form name="input" action="html_form_action.asp" method="get">

Username:

<input type="text" name="user" />

<input type="submit" value="Submit" />

</form>

试试 看好用不 跳转的页面是要自己写的 写好后把地址写到 action=“ 地址”里就行了

你出现了两个错误。

第一个form是表单,而不是from,单词写错了。

第二个是form需要闭合,也就是需要<form></form>

细节决定成败,一定要注意单词的拼写问题,好多时候都可能让你半天都找不到解决办法,比如login写成loign的,如果不注意,就会犯你这样的错误。

html form表单提交action和url跳转到action的区别:

form表单提交action 可以提交,传递参数,

url action ,完成页面跳转,不涉及传递参数。