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 6996157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:07:14+00:00 2026-05-27T20:07:14+00:00

as i searched quite for this issue, including google chrome support sites, Chrome Bug

  • 0

as i searched quite for this issue, including google chrome support sites, Chrome Bug Issues, as they are not yet fixed the problem. Right now i have a situation where i should use onuload or onbeforeunload event in my JS Snippets, as its working nicely in other browsers. these are the things which i’ve tried of now

  • using Page Hide or PageShow as Webkit provides alternative to this problem, but the result is same, chrome is not firing the onpagehide event only. after bit of exploration i come to know pagehide and pageshow methods are applicapble to firefox only.
  • Secondly i tried setting Async=false, as suggested in this answer OnUnload .
  • I’m using Chrome Dev.Version (17.0.963.12 dev-m).

Is there any work around for this weird problem, i hope anyone already experienced the same problem, and they may got some alternative.

<html>
<script type="text/javascript" >
function DoSomethingonUnload()
{
alert ('im unloading');

}
</script>
<body onunload="DoSomethingonUnload();"> //need alternative which can work in (ie,chrome,ff)
</body>
</html>
  • 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-05-27T20:07:15+00:00Added an answer on May 27, 2026 at 8:07 pm

    Using jQuery, I achieved this task. Using Bind function with onbeforeunload event jQuery bind . it works seamlessly 🙂 🙂 thank you @ Sergey Ratnikov

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

Sidebar

Related Questions

I searched internet and SO but could not get solution to this issue. I
I've had this long term issue in not quite understanding how to implement a
I've been having this issue with initializing AudioRecord for Android. I searched for quite
I hope this is not a completely stupid question. I have searched quite a
I have searched the net and searched the net only to not quite find
I searched for this subject on Google and got some website about an experts
I searched for this and found Maudite's question about text editors but they were
I searched and found this question but did not like the answer. Is there
I searched google but couldn't find an answer to this rather simple question. I
I have searched quite thoroughly on this but can't seem to find an answer.

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.