A
A
Anton2019-08-04 02:47:19
JavaScript
Anton, 2019-08-04 02:47:19

Protection against accidental refresh of a page or browser tab, how?

Hello, how to protect a tab from accidental closing or page refresh using js? Hang some kind of warning, I met this on some sites.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-08-04
@boypush

https://developer.mozilla.org/en-US/docs/Web/API/W...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question