How to open a new window on form submit

后端 未结 9 1956
说谎
说谎 2020-11-29 22:36

I have a submit form and want it to open a new window when users submits the form so i can track it on analytics.

Here is the code I\'m using:



        
9条回答
  •  臣服心动
    2020-11-29 23:30

    No need for Javascript, you just have to add a target="_blank" attribute in your form tag.

提交回复
热议问题