aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes javascript close or back button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript close or back button" Watch "javascript close or back button" New topic
Author

javascript close or back button

John Smith
Greenhorn

Joined: Nov 17, 2008
Posts: 2
please can anyone help me in telling how can i call my struts action method when the user is trying to close [X] or press the back button of the internet explorer.


and i also want to know how to remove the text(InernetExplorer 0r webPageDialog) from the titlebar when using window.open & showModelDialog() method
[ November 17, 2008: Message edited by: dos dos ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

"dos dos", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Closing, you can not do anything more than onbeforeunload.

You can not remove the text, would require you to hack the user's computer and change the registry.

Please change your name as Bear already suggested before replying to this answer.

Eric
John Smith
Greenhorn

Joined: Nov 17, 2008
Posts: 2
Hi,

Thanks for the reply.Can you please tell me how to remove the URL (Address Bar) from the dialog box generated using showModalDialog().

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

"dos", My request that you change your display name to adhere to JavaRanch standards was not a suggestion. Valid display names are mandatory for participation on the Ranch. Please change your display name as instructed in my private message prior to your next post.

Be aware that accounts with invalid display names are disabled.

bear
JavaRanch Sheriff
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript close or back button