31 users online (1 members and 30 guests)  


  Results 1 to 6 of 6

Related

  1. Replies: 5
  2. Launching a WebSite    Forum: Barter/Trade
    Replies: 1
  1. #1
    heddle's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Ypsilanti, Michigan
    Posts
    2

    Question automatically closing and launching files

    What is the code to automatically close a window and automatically open another window?

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    you know the 'search' tool for the forums can be pretty nifty at times.

  3. #3
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Derek, can you tell us the thread this was discussed in,personally I do not recall this issue before.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  4. #4
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    http://www.ahfb2000.com/webmaster_he...5&pagenumber=1

    Kinda discusses it guess it isn't exact though more like open and close rather than close and open...

    thanks for the silent chastisement Dave wasn't exactly in the best mood when I answered this, sorry heddle.

    The code is this:

    Code:
    <html>
    <head>
    <script language="javascript">
    <!--
    function openwindow() {
    newWindow = window.open("blah.html","def","height=300,width=300")
    }
    function closewindow() {
    window.close()
    }
    -->
    </script>
    </head>
    <body onload="closewindow()" onunload="openwindow()">
    </body>
    </html>
    enjoy

  5. #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    thanks for the silent chastisement Dave wasn't exactly in the best mood when I answered this, sorry heddle.
    Nope not what I was doing I read every post(even when you folks lose me) and just did not remember it, therefore I was not sure if "search" would have helped at all.


    ...back to my corner

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  6. #6
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    haha well I probably would not have remembered it either except for the fact that writing that little code took some time to think and work through to get it to work (hence is why I'm pretty good with pop-ups now ). So that one came head first into my mind and I thought I had covered is close enough. But in reality I didn't really(unless he knows somewhat was he's donig with javascript), so it was good I posted it here.
    Last edited by Derek; 04-19-2002 at 12:14 AM.