4
4
4sadly2020-01-15 16:28:28
JavaScript
4sadly, 2020-01-15 16:28:28

Javascript executing a function when a cross is clicked?

Is it possible to make it so that when the user leaves the page, some actions take place, in my case I need to send a request to the api?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimon3x, 2019-04-02
@Dimon3x

I removed the default block from the app.blade.php file and everything worked.

V
Vladimir, 2020-01-15
@4sadly

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