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.