displaying messagebox when user clicks browser back button
-
hello - I want to display message once the user will click the back button from some browser. There should be buttons with ok and cancel, if the user select ok then he will be redirected to the previous page, if he clicks cancel then he will stay at the current page. any help, advices...? thanks ahead
-
hello - I want to display message once the user will click the back button from some browser. There should be buttons with ok and cancel, if the user select ok then he will be redirected to the previous page, if he clicks cancel then he will stay at the current page. any help, advices...? thanks ahead
laziale wrote:
I want to display message once the user will click the back button from some browser.
AFAIK : You can't do that ! FYI : Capturing the Browser's Back button click[^]
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET
-
laziale wrote:
I want to display message once the user will click the back button from some browser.
AFAIK : You can't do that ! FYI : Capturing the Browser's Back button click[^]
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET
we can do this.. Infact just now I saw the similar one in this forum only... when I try to reply one of the post... try by clicking the reply link and enter some text in the space provided and click back button... you can see the effect which you are looking for...
Imtiaz A.K
-
hello - I want to display message once the user will click the back button from some browser. There should be buttons with ok and cancel, if the user select ok then he will be redirected to the previous page, if he clicks cancel then he will stay at the current page. any help, advices...? thanks ahead
You can attempt this in two ways 1) Disable the back button (plenty of examples for that) and handle the backward navigation from controls on your page. 2) Handle the onUnload event in JavaScript and determine if it came from the back button
only two letters away from being an asset
-
You can attempt this in two ways 1) Disable the back button (plenty of examples for that) and handle the backward navigation from controls on your page. 2) Handle the onUnload event in JavaScript and determine if it came from the back button
only two letters away from being an asset
-
can you send me a link please from one of those plenty examples. I tried many of them, but nothing is really happening on that specific file, the back button is still enabled. thanks, Laziale
http://www.bing.com/search?q=disable+back+button&src=IE-SearchBox&FORM=IE8SRC[^]
only two letters away from being an asset
-
can you send me a link please from one of those plenty examples. I tried many of them, but nothing is really happening on that specific file, the back button is still enabled. thanks, Laziale
Fact is, you cannot reliably turn off the back button. You're better off just fixing your code so that the back button doesn't do anything you don't want it to, such as log people back in.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.