Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7

Thread: Exit pic

  1. #1
    Junior Member patrick66's Avatar
    Join Date
    May 2003
    Posts
    11
    Member #
    1421
    Hi,

    I am creating a site with a full screen and I want to be able to display a pic that, when clicked, will exit the window.

    Thanks

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Code:
    <a href="javascript:window.close()><img src="whatever.gif" border="0"></a>
    JR

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Also, remove the space in javascript.
    JR

  5. #4
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    Code:
    <a href="javascript:window.close()><img src="yourimage.jpg" border="0"></a>
    is the code I think you require - but ASAIK that will pop up a window saying to the user that the web page open is trying to close the window - do you wish to continue...

    EDIT - can't remove the spaace between java & script - you'll have to do that yourself.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  6. #5
    Junior Member patrick66's Avatar
    Join Date
    May 2003
    Posts
    11
    Member #
    1421
    Thanks guys, this has been a real help!

    Can it be done with text instead of a picture?

    Thanks

  7. #6
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    just replace the <img> tag with the text you require. I think that should work.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  8. #7
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    He said his site is in full screen, so it is able to close without the message.
    JR


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:12 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com