How to prevent a new browser window from opening

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • visitme@soon.com

    How to prevent a new browser window from opening

    I'm creating a site for the village where I live: www.nutteln.de. On
    the "Postermuse um" page, I have a link "Weitere Poster", which should
    insert new content on the page. However, clicking the link opens a new
    browser window. How should I amend the code to load new content into
    the existing page? Thanking you in advance for your help!
    John
  • Andy Dingley

    #2
    Re: How to prevent a new browser window from opening

    On 11 Apr, 09:28, visi...@soon.co m wrote:
    I have a link "Weitere Poster", which should
    insert new content on the page. However, clicking the link opens a new
    browser window. How should I amend the code to load new content into
    the existing page?
    Replace
    <a href="http://..." target="_blank" >

    with
    <a href="http://..." >

    You're also using frames which might make things more complicated
    (don't use frames!). Without target, the link will open in the same
    window. You might require it to open in the same frame instead, in
    which case still keep
    <a href="http://..." target="name-of-the-target-frame" >

    Where the frames name is set in the name attribute of the relevant
    frame
    <frame name="name-of-the-frame" >

    Comment

    • visitme@soon.com

      #3
      Re: How to prevent a new browser window from opening

      On Apr 11, 12:48 pm, Andy Dingley <ding...@codesm iths.comwrote:
      On 11 Apr, 09:28, visi...@soon.co m wrote:
      >
      I have a link "Weitere Poster", which should
      insert new content on the page. However, clicking the link opens a new
      browser window. How should I amend the code to load new content into
      the existing page?
      >
      Replace
          <a href="http://..." target="_blank" >
      >
      with
          <a href="http://..." >
      >
      You're also using frames which might make things more complicated
      (don't use frames!). Without target, the link will open in the same
      window. You might require it to open in the same frame instead, in
      which case still keep
          <a href="http://..." target="name-of-the-target-frame" >
      >
      Where the frames name is set in the name attribute of the relevant
      frame
          <frame name="name-of-the-frame" >
      Thanks for your rapid reply Andy - problem solved!
      Best wishes,
      John

      Comment

      Working...