• home
  • forum
  • my
  • kt
  • download
  • Detect browser close javascript

    Author: 2009-03-06 09:00:25 From:

    Some of website developers are need to track on visitor’s activity during browsing their website. Even would like to track when the visitor exit or quit their website.

    Below is a simple example on how to using a javascript command to track on visitor exit/close page action.

    Example:

    <script language=”javascript”>

    function trackUser(){
    //doing something here for your tracking.
    }

    window.onbeforeunload = function(){ trackUser(); }
    </script>

    discuss this topic to forum

    relation tutorial

    No information

    Category

      AJAX (63)
      Content Management (12)
      Cookies (6)
      Date and Time (17)
      Development (18)
      DHTML (23)
      Forms (10)
      Frequently Asked Questions (3)
      Image Display (14)
      Introduction to Javascript (11)
      Links and Buttons (8)
      Menus (2)
      Miscellaneous (24)
      Mouse Tricks (3)
      Navigation (13)
      Randomizing (6)
      Security (5)
      Text Effects (10)
      User Authentication (2)
      User Information (5)
      Windows and Frames (8)

    New

    Hot