This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes need a listener for onTabChange in firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "need a listener for onTabChange in firefox" Watch "need a listener for onTabChange in firefox" New topic
Author

need a listener for onTabChange in firefox

Mahendran Aiyappan
Ranch Hand

Joined: Sep 05, 2005
Posts: 102
Hi guys,
I need a javascript listener for changing the Tab of the Mozilla Firefox. Also I need a javascript listener for every refresh of a page. I am using load event listener,but it is working only if you open a new window.

Thanks for your comments.

Mahendran A
Daesung Park
Ranch Hand

Joined: Mar 22, 2007
Posts: 68
It is impossible to listening to tab change. JavaScript doesn't concern browser's tab behavior.


Daesung Park

BLOG
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
onload should fire for a page refresh.

How are you refreshing the page and it is not being caught?

How are you adding an onload event.

Also the other poster is correct, there is no events for browser tabs.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: need a listener for onTabChange in firefox
 
Similar Threads
Calling WebService using plain JavaScript
To check for javascript
Determining if a download fails or when successful
Clear firefox cookies on closing the window
how to assign my function to onclick