This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Detect new window or new tab Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Detect new window or new tab" Watch "Detect new window or new tab" New topic
Author

Detect new window or new tab

bprakashq bprakashs
Greenhorn

Joined: Dec 23, 2008
Posts: 3
Hi All,

Could you please let me know how we could detect opening of new window or new Tab.

Thanks and Regards,
Brahma Prakash
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35440
    
    9
Hello "bprakash"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, you can use an "onLoad" handler in the BODY tag. The handler can perform whatever actions you deem necessary, including making AJAX calls to the server.


Android appsImageJ pluginsJava web charts
bprakashq bprakashs
Greenhorn

Joined: Dec 23, 2008
Posts: 3
Hi All,

Could you please reply to me whether is there a way to Detect when we open new Tab or new Window from the existing open window(BROWSER).

Thanks for your help.

Regards[color=green]
[/color]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56531
    
  14

"bprakashq bprakashs", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detect new window or new tab
 
Similar Threads
Implementing the child window in JSF.
Firefox session reuse causing problems with backing beans
IE new tab close event or new window close event
new tab servlet
scrollbar for JTabbedPane