HTML <form> 대상 속성

❮ HTML <form> 태그

예시

새 창이나 탭에 수신된 응답을 표시합니다.

<form action="/action_page.php" method="get" target="_blank">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname"><br><br>
  <input type="submit" value="Submit">
</form>

정의 및 사용

속성 은 target양식을 제출한 후 받은 응답을 표시할 위치를 나타내는 이름 또는 키워드를 지정합니다.

target속성은 검색 컨텍스트(예: 탭, 창 또는 인라인 프레임)의 이름 또는 키워드를 정의합니다 .


브라우저 지원

Attribute
target Yes Yes Yes Yes Yes

통사론

<form target="_blank|_self|_parent|_top|framename">

속성 값

Value Description
_blank The response is displayed in a new window or tab
_self The response is displayed in the same frame (this is default)
_parent The response is displayed in the parent frame
_top The response is displayed in the full body of the window
framename The response is displayed in a named iframe

❮ HTML <form> 태그