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

Any way to stop spammers from forging the "From" or "Reply To" fields?

Posted by mifbody, 03-28-2008, 07:21 PMHey guys, Is there any possible way to stop spammers from...

Php as CGI or not.

Posted by Vinayak_Sharma, 01-13-2008, 08:37 AMOk I am configuring a fresh/new WHM/cPanel server...

Creating seperate index files for each image (or something similar)

Posted by svtVIB, 01-11-2008, 04:19 AMI created a website and I have an index.html; and in there,...

Urgent problem: too much traffic, how to stop it?

Posted by fgalli, 05-04-2007, 09:33 AMHi, i've a vps with iptables, but i've too much traffic...

FTP login problem

Posted by crazyaboutlinux, 04-14-2009, 10:42 AMone of my client is facing to connect FTP server...