Sorry for asking a weird question... I want to submit a form out of . But I want to allow users to open the link in a new tab (e.g Ctrl+Click). Here is what I have already tried.Отправить форму в <a href="form.submit();">
1 . <a href="#" onclick="document.form1.submit();">Submit Form</a>
This opens the new link in the same tab and the old link in the new tab.
2. <a href="javascript: document.form1.submit();">Submit Form</a>
This does not let the link to be opened in a new tab.
How can I make it right?
Thanks.
Это будет всегда открыть ссылку в новой вкладке, которую я не хочу. –