Results 1 to 3 of 3

Thread: In need of a very simple script

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation In need of a very simple script

    Hopefully I am in the right place..I am looking for a simple script I saw here awhile ago but cannot find at the moment.
    What it does is ..when a viewer selects a link you have on your site which links to another external site ..once they have finished viewing the external document..it will close the window back to your own site..(helps to keep your traffic at your own site) can anyone help me please..???

    I searched DD..and dont seem to be able to find it.

  2. #2
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    so opening a new window?

    uhhh..... <a href="externalsite URL" target="_new">?

    thats all i can think of using your description...

    PS thats as simple as it gets.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

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

    Default

    You can also use a popup.
    Once on the page, IF and only if you opened that page with javascript, a link:
    <a href="#" onClick="window.close()">
    should work.

    But... now I can't remember what the function is... window.close()? something... not sure if it's a default or not.

    So... that could work, but just hitting the X will work best if they want to return to your site later. Just do the above... open a new window with the site in it.
    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
  •