delete alert not configured

0

I have a problem that I do not know how to solve, to see if you can help me.

In a window I have a window which has the personal data and other data of a person in which you have a "Modify" link that takes me to the form to modify the data, but this link redirects you to the form to modify the old web.

The issue is that when I give the link to go to modify the data I get an alert, which I have not put it and depending on the browser you are in, it puts a different text, and I do not know why I get it said alert, Chrome appears the alert that says "really want to leave the website? the changes have not been saved" in firefox puts something similar but with other words, I give cancel to not leave the window, but if you I give it a second time, I no longer skip the alert and it redirects me well to the modify window of the old web. The issue is that the alert should not appear because I have not put it in itself and I guess it is the subject of browsers and I do not know if there is any function or something to disable it.

Thank you very much

    
asked by derek 22.08.2018 в 11:14
source

1 answer

1

The Alert that you see is triggered by the event onbeforeunload JavaScript, each browser, and browser version has a different implementation, so change the text, if you do not want to see it more look for that text in the whole project and delete it, with the function that is added . It can appear as onbeforeunload="algunaFuncion()" , as object.onbeforeunload = function(){//codigo} or object.addEventListener("beforeunload", function(){//codigo});

    
answered by 22.08.2018 / 15:53
source