HTML form action属性

form action属性

HTML form表单元素中的action属性是form的必需属性,用于指定表单被提交时将表单中的数据发送到的URL地址。


语法

<form action="url">

action属性实例代码,及在线编辑器

<form action='https://www.x1y1z1.com/search?' method='get' target='_blank'>
  <input type='text' name='qsearchword'>
  <input type='submit'>
</form>

全栈前端 / HTML属性 :











Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.