Horje

How to add HTML <form> target _blank Attribute

_blank The response is displayed in a new window or tab
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The form target attribute</h1>

<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>

</body>
</html>

Output should be:

How to add HTML <form> target _blank Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin