Using _blank with iframe
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26003
Printed Date: 28 March 2026 at 9:02am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Using _blank with iframe
Posted By: PrettyNormalGirl
Subject: Using _blank with iframe
Date Posted: 26 July 2008 at 11:31am
I am using iframe to display an ad on my homepage. I don't want this ad's site to open up in the same window than my homepage, it should open in it's own new tab.
So where in my code do I put the target = "_blank"?
My code for the iframe is: <td width="120" height="152" align="center" valign="middle"><iframe src="http://rcm.amazon.com/e/cm?t=httpwwwpnskry-20&o=1&p=6&l=bn1&mode=books&browse=17&fc1=000000&lt1=&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="120" height="150" border="0" frameborder="0" style="border:none;" scrolling="No"></iframe></td>
Please could somebody help me?
|
Replies:
Posted By: Scotty32
Date Posted: 26 July 2008 at 2:44pm
you cant, its down to the page inside the iframe - which you do not have access to.
Though i am sure amazon let you choose this when you create the code for the advert
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
Posted By: PrettyNormalGirl
Date Posted: 26 July 2008 at 3:25pm
Thanks for replying, Scot. I am sure that was Amazon's intention, not very nice, hey?
Ok, so what to do? Choose another similar add that doesn't use iframe?
|
Posted By: 123Simples
Date Posted: 26 July 2008 at 3:50pm
Maybe http://www.askdavetaylor.com/how_do_i_quickly_build_amazon_affiliate_links_on_my_pages.html - this page may help you with the problem
I would tend not to have iframes on the forum even though I understand that you want to earn some money from your links
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: PrettyNormalGirl
Date Posted: 26 July 2008 at 4:47pm
Thanks MrTWS, I tried that and it works very nicely, except that my image is now not dynamic anymore. I have selected The Shack as image and link and thus this is now the same all the time.
My previous link had the books changing all the time.
|
Posted By: 123Simples
Date Posted: 26 July 2008 at 6:41pm
Ummmmmm - let me think and I'll come back on that Why not PM me your forum address as that always helps to sort out problems
------------- http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design
|
Posted By: PrettyNormalGirl
Date Posted: 26 July 2008 at 8:15pm
Sorry, MrTWS, what do you mean by forum address? This forum?
|
Posted By: Scotty32
Date Posted: 26 July 2008 at 11:24pm
as i said, look at the Amazons Affiliates center.
When you create the advert banner code, they should give you an option to open in a new window or not. If they dont then there is nothing you can do, because you do not have access to Amazons page inside the frame.
------------- S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins
For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .
|
Posted By: PrettyNormalGirl
Date Posted: 27 July 2008 at 10:08am
Ok, I will go back to the Amazon Affiliates center and see if they give me a choice, but I don't think so. Thanks, will do that.
|
|