title: How to show a pop up message when someone clicks on my javascript link
body: <p>This is my code to open a javascript link which I am already using and it is working great:-</p>
  
  <pre><code>&lt;a blank="" href="javascript:;" onclick="window.open('This is my affiliate url');" rel="nofollow"&gt;&lt;img src="This is the image which I want user to click" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Now here I want to show a message box when someone click on this image. That means the url should also open when somebody clicks on the image and a pop up message should also show with my message.</p>
  
  <p>You might have seen several coupon websites. Their affiliate link opens, and a pop up message shows the coupon code when somebody click on that.</p>
  
  <p>I want to achieve the same thing with the above hyperlink. Please help me how to do that.</p>