27 users online (1 members and 26 guests)  

Thread: farewell alert


  Results 1 to 3 of 3

Related

  1. Is it possible to add a link in an alert box?    Forum: Javascript Forum
    Replies: 3
  2. supress browser alert    Forum: Javascript Forum
    Replies: 1
  3. How many characters in a confirm/alert box?    Forum: Javascript Forum
    Replies: 1
  4. alert if not using IE    Forum: HTML Forum
    Replies: 1
  5. javascript alert box    Forum: Javascript Forum
    Replies: 7
  1. #1
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    Talking farewell alert

    how can i have a farewell alert?

  2. #2
    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
    If you would like to have a pop up on exit....
    insert this into the head:
    PHP Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- 
    Begin
    function leave(){
    window.open("http://url to the pop up page.html','','toolbar=no,menubar=no,location=no,height=400,width=400");
    }
    // End 
    -->
    </SCRIPT> 
    place this within the body tag:

    PHP Code:
    onUnload="leave()" 
    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  3. #3
    Zaire's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2001
    Location
    Hamburg, NY
    Posts
    312
    You Could do Something Like..

    PHP Code:
    <script language="JavaScript">
    <!--
    function 
    bye(msg)
    {
         
    alert(msg);
    }
    //-->
    </script> 
    Then in your body, you would need

    PHP Code:
    <body onUnload="bye('Thanks For Visiting!');"



Tags for this Thread