How to set a form action to open a new window with a specific size?

Therefore, I use code like:

<form action="file.php" method="post" target="foo" onSubmit="window.open('', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes')">

But this probably won't work if the user has disabled JS. So, how to set a new window. Width and height are not used by JS?

I know that we can use target="_blank"to open what I need in a new window, but the size ... I just can not find how to do it ...

+3
source share
1 answer

There is no way this is not available for JavaScript.

. target - , , window.open().

+3

Source: https://habr.com/ru/post/1777699/


All Articles