Opening affiliate banners in a new window



Hi All,

On my website i feature affiliate banners, when I click these banners it does not open a new window (i.e. it takes the user away from the page that they are on).

How can I make sure that when a user clicks on a banner on my website, it opens a new window?

Thanks guys. 

Accepted Solutions (1)

Accepted Solutions (1)



Hi , 

Please make sure that you use "" function of javascript on click of the banner. Here is the sample code for the same. 

<!DOCTYPE html> <html> <body> <p>Click the button to open a new browser window.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() {""); } </script> </body> </html>

Thanks & Regards

Parit Mittal

Answers (0)