How to make an iFrame Amazon Banner to open in a new window

Most people like their affiliate links to open in a new window, because almost all Affiliate links take the user away from the current site they are visiting, to a new website, where they can make a purchase or place an order. Webmasters often look for ways to make their affiliate links and banners to open in a new window, so the user does not leave their site. As long as the site is open in a background tab in the browser, chances are the user will come back to browse more parts of the website.

Amazon.com

With Affiliate links, it is very easy to make the target page open in a new window as it only requires a bit of HTML code in the “href” tag, which indicates if the link is to open in the same window or a new window when clicked. The HTML code to open a link in a new window uses target=”_blank” attribute. The same code can be used to open clickable images in a new window. However, the code is different when it comes to banner ads and links using javaScript or iFrames, such as Google Adsense and Amazon banners.

If you want your Amazon banner to open in a new window, you will need a slightly different code because Amazon banners use iFrame code, which is different from simple HTML. The attribute target=”_blank” does not work with iFrames; instead, you will have to use <1=_new as part of the “src” section of the code. It should be added to the end of the link code just before the closing apostrophe. An example code taken from bloggertipsandtricks.com is given below:

Code for Amazon Banner opening in same window

<iframe src="
http://rcm.amazon.com/e/cm?t=applesorangespears-20&o=1&p=12&l=ur1&category=gift_certificates&banner=127JF9E4530CSFRCY4R2&f=ifr" width="300" height="250" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>

Code for Amazon Banner opening in new window

<iframe src="
http://rcm.amazon.com/e/cm?t=bloggerfordum-20&o=1&p=12&l=ur1&category=gift_certificates&banner=127JF9E4530CSFRCY4R2&f=ifr<1=_new" width="300" height="250" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>
If you already have Amazon banners on your site, you might want to try this out and change them to open in a new window.
Author Bio:
Richard Jacobs is a chief editor since early 2007, and he currently works for dwiduidefenselaw. A webiste that helps you to find the right DUI lawyer, you can search for a New Jersey DWI Lawyer online, anytime!
  • Or you can use javascript to make every link on your website open in a new window

  • You can also use wordpress with a plugin to post automatically and add Amazon products based on keywords. Very helpful to be on autopilot.

  • Thanks for the info, much appreciated

  • Stay with a current page of any site and also want to access its affiliate links on same page that require only few changes in the HTML code of that site as see above by which we remain on that page with new banner window.

  • LOL. I didn’t know it was this easy. I too would like viewers to stay on my site so they can check out the other pages. The last thing that I want is for them to go directly to the affiliate page, X out of it because they don’t like it, and forget all about my website.

  • Nice cheat! Not sure how you found this out.

  • Great trick thanks!!

  • It is very easy to make the target page open in a new window as it only requires a bit of HTML code in the “href” tag, which indicates if the link is to open in the same window or a new window when clicked.

  • dear !! help me to reverse the comment order on my blogspot, so the newest comment appear on top. Thnx

  • this is really great programming to learn about iFrame Amazon Banner…very helpful post thanks for this sir!!!

  • You may have noticed already, but we wrote about you in our blog. What you did to your Converse sneakers was fantastic, we are quite impressed!

  • An iFrame that defines an inline frame that contains another document that can be I-frames, video compression, video compression picture types and so on. Just enter the details of how you want your iframe to look, the url you want to show within the iframe that means now open a new window.

  • What a great example of a creative person truly going after his passion and realizing the inherent income potential almost as an afterthought.

  • In this blog any body earn commission form Amazon affiliate’s progam

  • Very good post. I always like your posts you are a professional marketer.Thank you.

  • Wow! very nice information i get! Thanks a lot for enjoying this beauty article with me.

  • very good

  • very good

  • Assignment help

    Really like this notes and now we will paste this code with new features.

  • I copy and paste the Amazon Associates’s banner ad codes (iframe) onto my Blogger html, it keeps giving me error message. Can someone tell me where I should paste to?

  • That’s a nice tip – thanks!

  • Insurancebmyroat

    very awesome information thanks to you..

  • It helps! Great advantage to folks looking for this.

  • It helps! Great advantage to folks looking for this. Keep it up.

  • Nice theme thanks a lot for the sharing….

  • can you create a banner for a spcific type of books eg books JUST on olympics?

  • p.pallino10

    Very good job. How did you find that code? I’m having the same “target” problem with the reviews iframe, but unfortunately your trick doesn’t work with the reviews URL (Amazon returns a blank page and adding “&f=ifr<1=_new" does not make a difference).

  • Sowmya Tom

    how can i open the product view page in iframe