SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    count of tabs opened in a browser close event

    Hi,
    how to find out the how many tabs opened in a browser, when i click on close button of browser. And also is there any separate events for tab close and browser close.
    Can any one please give me solution for this.

    Regards,
    Mani.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,809
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    There are no tab close or browser close events. The closest is the web page unload event that is triggered when a web page is unloaded regardless of whether it is simply to reload the same page, load a different page or because the tab or browser has closed.

    If it is possible to do what you want it would have to be done as a browser plugin as scripts running in the browser itself or in a web page will not have the necessary security access.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Tags for this Thread

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
  •