Results 1 to 2 of 2

Thread: Not sure how this can be done.

  1. #1
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Not sure how this can be done.

    I would like to make a page that has a link to another site, that link will open on a new browser window and if the user gets to finish page on that new window the original page will show a download link.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Using javascript, it's possible.

    'opener' will refer to the opening window.

    Something like this, though I'd need to test it to figure out the best method.

    opener.location = 'thanks.htm';
    opener.focus();
    window.close();


    Also, note that there are some security regulations dealing with external pages, from differing domains. I'm not sure how these would apply exactly in the case above. Worth knowing about, though.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •