---
title: "Discussion on \"Angular 10 Leave Browser Beforeunload Event: Warn Users Leaving your App\" | Hashnode"
description: "Discussion on \"Angular 10 Leave Browser Beforeunload Event: Warn Users Leaving your App\". In this article, we'll learn about the beforeunload event which is a browser event that's used to prompt or warn users that they're about to leave a page or in our case the Angular app. \nHow to Use beforeunload in JavaScript\nYou can use the browser's..."
url: "https://hashnode.com/posts/angular-10-leave-browser-beforeunload-event-warn-users-leaving-your-app/5f71001b1c510d72d0749f25"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Angular 10 Leave Browser Beforeunload Event: Warn Users Leaving your App](https://www.shabang.dev/angular-10-leave-browser-beforeunload-event-warn-users-leaving-your-app?utm_source=hashnode&utm_medium=feed)

In this article, we'll learn about the beforeunload event which is a browser event that's used to prompt or warn users that they're about to leave a page or in our case the Angular app. How to Use beforeunload in JavaScript You can use the browser's...

Sep 27, 2020 · 1 min read · shabang.dev  
Read the article

## Written by

[Kaima](https://hashnode.com/@kaimaabbes)

@kaimaabbes

  
[View profile](https://hashnode.com/@kaimaabbes)

Web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
