By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,702 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,702 IT Pros & Developers. It's quick & easy.

disable/remove the default buttons of a browser

100+
P: 129
Hello friends,
In my project, i am opening a window with javascript, in that new window i am providing a link to close that window, then there is no use of default close button of that window.
So, i want how to disable or remove that close button of that window through javascript?
Sep 10 '08 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
a) does it matter if there's a default close button?
b) as far as I know this default buttons are part of the browser, so you need at least a plugin to change the browser appearance (the browser itself is not part of a website)

regards
Sep 10 '08 #2

100+
P: 129
Of course, it matters
when we give project to the end users/clents they must use close link not close button to close the window. The users tempo is they normally use anything in windows or linux with alt+f4 or clikcing the close button to close a window. We must change their tempo because we are the developers.
Thanks my friend. If any solution is came to u for this problem please let me know.
Sep 10 '08 #3

gits
Expert Mod 5K+
P: 5,390
as far as i'm aware there is no reliable way to achieve that. is it a webapp that needs to be crossbrowser-compliant or is it an internal app that could rely on some preliminaries? typically you could just use the 'onbeforeunload' event to call a js-function that should be executed in case the browser is closed ...

kind regards
Sep 10 '08 #4

acoder
Expert Mod 15k+
P: 16,027
when we give project to the end users/clents they must use close link not close button to close the window.
Why? Is there any reason why they must use the link?
The users tempo is they normally use anything in windows or linux with alt+f4 or clikcing the close button to close a window. We must change their tempo because we are the developers.
If users are comfortable with something, why force unnecessary change?
Sep 10 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.