We see posts all the time in this forum with people asking questions like: how do I disable the refresh button? prevent the user from closing the window? change the browser settings? run programs on the user's computer?
Such actions are outside the domain of the window that the browser gives you, and attempting to subvert the user's computer and settings in these manners is generally considered rude.
Sort of like going into your neighbor's house and re-arranging the furniture.