Opening a new page in an iframe, is it possible?

Posted by bambinou, 02-09-2011, 01:49 PM
Hi All, I have an iframe here:
In this iframe I have about 20 pictures, right in the middle of the page I have 1 banner, I would like to publish another site in this area, when the user clicks on it,a new page opens with the new url. How to do this please? I do not want to add the banner after the code or people will just remove it when using my code. Please help, Ben

Posted by scriptexpert, 02-10-2011, 01:10 AM
try out javascript code that should populate a new window and include the specified iframe.. call this js on onclick.

Posted by pmwebster, 02-10-2011, 03:11 AM
I can't remember the link for this, but I found it by googling 'ajax update iframe src' ... hope that helps your search for the code.

Posted by mazgalici, 02-10-2011, 05:26 AM
make an iframe with name="myframe", then make a href with target="myframe". Sorry, I'm not allowed to post the tags (i have few posts)

Posted by johnstevebravo, 02-14-2011, 11:01 AM
You can use Javascript's window.open function or you can simply use target="_blank" in tag.

Was this answer helpful?

 Print this Article

Also Read

Anyone waiting for joker.com domain transfer?

Posted by universal2001, 09-09-2001, 08:47 PMI'm trying to transfer a domain name from Joker to...

Domains on a particular nameserver

Posted by realvaluehosting, 09-14-2007, 03:24 AMHi, Is it possible to get a list of the...

Vps and Nameservers

Posted by ASTRAPI, 04-20-2009, 03:03 PMHello If i create a vps using openvz and use a new ip...

Database server in different continent?

Posted by UberTricep, 10-27-2012, 08:23 AMHello, Is it wise to have a web server hosted in...

Setting up new Network, Security concern on DDOS

Posted by EricTham, 04-15-2009, 11:15 PMI am intending to setup a network as the following:...