EN
HTML - form target _blank
1 answers
0 points
Can I add target="_blank"
to the HTML form
element to open the web page in a new tab on submit event?
1 answer
0 points
Yes, you can.
The below example will open this question page in a new tab after you click the button
.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<form action="/questions/HTML-form-target-blank-1Goq41" target="_blank">
5
<button type="submit">Click me!</button>
6
</form>
7
</body>
8
</html>
0 commentsShow commentsAdd comment