[Link that close current window]

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arne Ballay

    [Link that close current window]

    Hi,
    I'm using JavaScript in a JSP where build up dynamik links (<a href...).
    These links are shown on the current JSP page. We someone clicks the
    Link another page changes (load the current URL).
    Now I also want to close the current JSP. When I add
    onClick="window .close();"
    to one of my links the window closes, but the other page doesn't change.
    Does anybody have a suggestion how to change the other page and also
    close the current window?
    Thanks in advance.
    Arne
  • Andrew Thompson

    #2
    Re: [Link that close current window]

    On Wed, 05 Jan 2005 09:12:01 +0100, Arne Ballay wrote:
    [color=blue]
    > I'm using JavaScript in a JSP where build up dynamik links (<a href...).
    > These links are shown on the current JSP page. We someone clicks the
    > Link another page changes (load the current URL).
    > Now I also want to close the current JSP. When I add
    > onClick="window .close();"
    > to one of my links the window closes, but the other page doesn't change.
    > Does anybody have a suggestion how to change the other page and also
    > close the current window?[/color]

    Is this web-app for an intranet with a controlled environnent,
    or the internet? If it is the internet, and this is a 'business
    critical' app. ('Click here to purchase'), I might offer you two
    pieces of advice.

    1) Don't use pop-ups, they are going the way of the Do Do's.
    2) Don't use JS for links (or ay least make the app. navigable
    for non-JS clients)

    Search the archives of this group, and it's FAQ, and some of
    the web-design groups for much (much) more on both.

    [ Oh, and uses also find it pretty irritating to have windows
    disappear on them 'mysteriously', which might be a good reason
    to reconsider it - even for an intranet app. ]

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.LensEscapes.com/ Images that escape the mundane

    Comment

    Working...