Results 1 to 3 of 3

Thread: How do i keep pages in my iframe.

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How do i keep pages in my iframe.

    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.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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:
    HTML Code:
    <a href="http://www.google.com" target="_blank">Link</a>
    Change it to this:
    HTML Code:
    <a href="http://www.google.com">Link</a>

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Btw, if that doesn't work then you might have this tag:
    HTML Code:
    <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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •