Posts o[html] submit form to new window
Post
Cancel

o[html] submit form to new window

You probably knew that you could force a link into opening a new tab or window with the target=”_blank” attribute (deprecated, but universally still supported).


But you can use the same exact attribute on forms to get the same result:

```js
<form action="x.php" method="post" target="_blank">
    ...
</form>

source - https://css-tricks.com/snippets/html/form-submission-new-window/

origin - http://www.pipiscrew.com/?p=3401 html-submit-form-to-new-window

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags