Log in

View Full Version : How do i keep pages in my iframe.



mimi86uk
11-23-2008, 05:15 PM
Hello, im new and im having severe problems with my website design.

I have an iframe on my websites index.page, that opens product pages from another site, an eccommerce site i was using to build my online shop. I know i could of done this a different way!!!

My problem is that I can open my eccommerce pages in the iframe fine, but when i click a link on that eccomerce page (in the iframe) the link opens as a page all by itself, and to get back to my index page i have to click back.

How can i get the links within the iframe to open within the iframe.

The eccommerce site im using, does let me customise but to an extent.
I can apply codes on all the pages as a css style template, but it would be the same code for every page as it doesnt let me customise each page individually.

Yes i know i could of used cube cart and this and that, but my funds are limited and my html knowldege is ok but im no pro!!!

I used store2go, cus it was cheap and easy...

Ive read other threads but they werent helpfull, i need a html or css code.
Can somebody help please? Im desperate.

Snookerman
11-23-2008, 06:29 PM
What you need to change is the "target" attribute of the anchors. They are most probably set to target="_blank" now, which cause the link to open in a new, blank, page. What you instead need is target="_self" which is also the default, so removing all target attributes would do it. As far as I know there is no way to do this with css, you have to edit the html files. So if your link looks like this:

<a href="http://www.google.com" target="_blank">Link</a>
Change it to this:

<a href="http://www.google.com">Link</a>

Snookerman
11-23-2008, 06:40 PM
Btw, if that doesn't work then you might have this tag:
<base target="_blank">in your head section. This decides the target for all anchors that do not have a target value. Remove that one as well.