Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:15:07+00:00 2026-06-17T22:15:07+00:00

I am trying to handle browser back button event but i could not find

  • 0

I am trying to handle browser back button event but i could not find any solution.

I want to ask user if he clicks on browser back button using “confirm box” if he chooses ok i have to allow back button action else i have to stop back button action.

Can any one help me in implementing this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:15:08+00:00Added an answer on June 17, 2026 at 10:15 pm

    Warn/confirm User if Back button is Pressed is as below.

    window.onbeforeunload = function() { return "Your work will be lost."; };
    

    You can get more information using below mentioned links.

    Disable Back Button in Browser using JavaScript

    I hope this will help to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to handle the problem where a user can try to open, with
I've been trying to handle the onkeydown event across multiple frames (no, I unfortunately
I am trying to handle the click of custom button in a jqgrid. I
I am trying to build a browser using Python+pygtk+webkit. Now, I want to throttle
I have been trying to get the forward an back browser buttons to work
I'm trying handle bad json data when parsed through json_decode(). I'm using the following
I'm trying to handle a JSONP Callback, I have the following JavaScript var URL
I am trying to handle a case of a DateTime which might be null
I'm trying to handle a file address within my python program and pass it
I am trying to handle a contenteditable body in an iframe, in order to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.