How to Open iFrame Banner/Widgets in a New Window


How to Open iFrame Banner/Widgets in a New Window

All of you might be familiar with opening HTML text links in a new window using “_blank” attribute. But it does not work in iFrame widgets or banners.

Instead of “_blank“, you need to add the following code to open iFrame links in a new window:

&lt1=_new

Here is an example:

Original code:

<iframe src="http://rcm.amazon.com/e/cm?t=1255415&o=1&p=13&l=ur1&category=holiday&banner=0JZA98M0RH2G176441R2&f=ifr"
width="468" height="60" scrolling="no" border="0" style="border:none;"
frameborder="0"> </iframe>

Altered one with &lt1=_new:

<iframe src="http://rcm.amazon.com/e/cm?t=yourAssociatesID&o=1&p=13&l=ur1&category=holiday&banner=0JZA98M0RH2G176441R2&f=ifr&lt1=_new"
width="468" height="60" scrolling="no" border="0" style="border:none;"
frameborder="0"> </iframe></div>

Hope you got it right! :)



You May Also Like:

Article by Shafar.
About the Author: Tech Freak, Android Lover, Wordpress Addict, Social Media Junkie and the Founder of TipsBlogger.
To submit guest posts to TipsBlogger, please read the Guidelines.


18 Responsesto “How to Open iFrame Banner/Widgets in a New Window”

  1. Anonymous says:

    Thank you!! Very useful.

  2. cconniejean says:

    Worked perfect! Thank You.

  3. akutria2 says:

    it’s nice to open it!

  4. Natalia says:

    didn’t work for me. the page in my iframe is not mine and added the code and says url not found :( my site is http://www.geocities.com/n.monterov

  5. Anonymous says:

    you are lifesaver….thanks so much

  6. Softpump says:

    can u plz tell how to put iframe above the site header like a top banner and also scrolls……..

  7. Shafar says:

    @Softpump
    You can add iframe BANNERS or WIDGETS above your site header, but I think you cannot add the HTML iframes to blogger blogs.

  8. emma says:

    Hi there

    Well I used that same code in a site earlier this year and it used to work perfectly – the code’s below …. BUT now, for some reason, it now just goes to Amazon in the same window.
    GRRRRRRRR – anyone else noticed this or is it just me?

  9. Ray says:

    I tried the code in a site and and it also goes to Amazon in the same window

  10. Shafar says:

    @Ray
    Don’t add spaces, copy paste the piece of code given above at right place. Try again.

  11. freemontok says:

    Hi…Thank you

    It’s work for me

    freemontok

  12. zero67 says:

    Work! Thank You.

  13. Daniel says:

    Thanks! Very useful!!

  14. SFG says:

    Genius…Thanks

  15. Jackie says:

    Thanks so much. This is exactly what I was looking for and couldn’t find it anywhere else.

  16. boki says:

    this works only for the amazon link, it doesn’t work for anything else…i use iframe to insert a word document saved as html, and can’t open links in new window, this doesn’t work…any solutions?

  17. Fashionpara says:

    wow!!!!!!!!!!
    thank you so much
    this is something that i am looking for

  18. Dipti says:

    This doesn’t work for

    http://www.purdue.edu/bcc/&lt1=_new

    PLEASE HELP!!

    Thanks

Leave a Reply