www.webdeveloper.com
Results 1 to 6 of 6

Thread: Close and open

  1. #1
    Join Date
    Nov 2002
    Location
    Bournemouth, Dorset
    Posts
    47

    Close and open

    Could someone please provide me with some code that will open a url in a new browser window when the user clicks on the close button on the one currently in view.
    Eg
    User clicks [X] on Window 1
    Closes Window 1
    Opens URL in Window 2

    Hope you can understand that
    Many thanks in advance

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    2,653
    implemet onUnload Event,it should it for you.

  3. #3
    Join Date
    Jan 2003
    Location
    Dundee, Scotland
    Posts
    1,367
    hi,
    this is a JavaScript question and not an ASP one.
    ----------------------------------

  4. #4
    Join Date
    Nov 2002
    Location
    Bournemouth, Dorset
    Posts
    47
    How do i do an onUnload event then?

  5. #5
    Join Date
    Dec 2002
    Location
    Pensacola
    Posts
    263
    In your body tag, put onUnload="what you want to do"
    Cheers!
    Rob

  6. #6
    Join Date
    Nov 2002
    Location
    Bournemouth, Dorset
    Posts
    47
    Sorry for being completely retarded, but if i wanted it to open a new window with a web page in it how would i do that?

    I really appreciate your help
    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles