SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Java link

  1. #1
    SitePoint Member Widescreen's Avatar
    Join Date
    Oct 1999
    Location
    Leicester UK
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java link

    Hi guys
    is is possible to click a link to open a new window and with java automatically close the parent window?

  2. #2
    SitePoint Enthusiast jpp's Avatar
    Join Date
    Nov 2003
    Location
    Arnhem, The Netherlands
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this should work:

    function opennewcloseold()
    {
    window.open(location,name,parameters);
    window.close();
    };



    <a href="javascriptpennewcloseold()">yourlink</a>

  3. #3
    SitePoint Enthusiast jpp's Avatar
    Join Date
    Nov 2003
    Location
    Arnhem, The Netherlands
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jpp
    I think this should work:

    function opennewcloseold()
    {
    window.open(location,name,parameters);
    window.close();
    };



    <a href="javascriptpennewcloseold()">yourlink</a>
    i mean
    Code:
    <a href="javascript:opennewcloseold();">yourlink</a>

  4. #4
    SitePoint Member Widescreen's Avatar
    Join Date
    Oct 1999
    Location
    Leicester UK
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks ill try that


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
  •