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.
这将始终打开一个新的标签,这是我不希望的链接。 – 2013-03-28 10:57:22