codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Javascript: How to disable the default Microsoft Internet Message Box  frombrb at 15:52 on Tuesday, July 05, 2005
 

Hi All,
Iam checking out whether the user is closing the Browser Window.
If yes then Iam firing on window.unbeforeunload event and display a webpage dialog box him to save or cancel.

But when I click on the cancel button, It closes the window. Then I was looking in there is a window.event.returnValue = "". which fires this one.

I would like to disable the default Internet Explorer Message Box by using javascript.

Which says like this.
"Are you sure you want to navigate away from this page?"

Press OK to continue or Cancel to stay on the current page.

window.onbeforeunload

Thanks in advance








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Display swf file in pdf
•  A-Line Wedding Dresses
•  Re: how to create forum using asp.net with c# language?
•  Discount coach store
•  External hard drive recovery tips
•  Create Better Maps with Global Mapper
•  Re: How to display a message box when record is temporary stored in session/grid view
•  Sharing object in perl
•  Re: C++ Beginner question


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012