Special Business Hours on Friday November 28th: Please note that our offices will be closed on Friday November 28th, starting at noon. During our absence, don't hesitate to browse our FAQs that you can access by clicking on the question mark icon in the upper part of your account or on this link: FAQ.
Close
Free Webinar: Join our exclusive webinars with the CRTC to master CASL compliance in your email marketing on November 27th at noon (EST). Register now
Close

Code example: how to submit a form in a new window

When you embed an HTML form into a page, you may want it to submit in a new window. This way, when someone subscribes, the confirmation message opens in a new page rather than replacing the current one and your subscriber doesn't leave the page he was visiting.

To do so, simply add a target="_blank" attribute to the form tag.

Code sample:

<form target="_blank" action="https://app.cyberimpact.com/optin" method="post" accept-charset="utf-8">

If you plan to share the page where your form is embedded on Facebook, be aware that there is a known problem with the target="_blank" attribute and the Facebook mobile app on iOS. Learn more >

Top