Hey Guys! Right, I was wondering why when I use iframes it makes new pages popup in ie and firefox. If anyone can't help I'll just do javascript or something.

Hey Guys! Right, I was wondering why when I use iframes it makes new pages popup in ie and firefox. If anyone can't help I'll just do javascript or something.
Do you mean links IN the IFrame open in a new page OR do you mean links that should be opening in the IFrame open in a new page? If it's the former try setting the links "target" attribute to "self" or if it's the latter then make sure the links "target" attribute is set to the IFrame's name.
Last edited by Invent; 29-12-2009 at 06:09 PM.
use php includes, soo much simpler![]()
Yeah, the links should like to the iframe, I have done the target but it doesnt work?
You must have done it wrong, can you post your code?
CBA lol. Ill just do what apps said..
Soz for double post, but I am now using Dynamic Ajax Content and it isnt working aswell :S.
Well sorry but we cant help you if you "cba" to post your code, it is hard to guess what we are trying to fix.
Erm... No.
To link to the iframeHTML Code:<iframe src="page.php" class="iframe class" style="border: 0; width: 100px; height: 100px;" name="iframe"> <p>Sorry, your browser does not support iframes.</p> </iframe>
target in the link = name of the iframe.HTML Code:<a href="page.php" target="iframe">lol</a>
Want to hide these adverts? Register an account for free!