Questions tagged [onunload]
198 questions
0
votes
1 answer
Xamarin.Forms Cannot call OnDisappearing()
I need to just show a message (Under certain circumstance) when I'm leaving a screen.
Found that there's a method called OnDisappearing() that is called when the form is being unloaded (Or also being overlaped by a new one).
What I found:…

Jorge Lizaso
- 199
- 1
- 3
- 15
0
votes
0 answers
Microsoft Edge is unable to set localStorage when unload event
I have stucked this issue for a month. Anyone who knows the solution, please help.
I would like to close all child window if the main window is closed (click 'X' button on tab or browser window) without any popup dialog. However, if the child…

Andrew J
- 11
- 3
0
votes
2 answers
Are there any conditions under which window.unload event does not fire?
I'm using navigator.sendBeacon on the front end to tell the server when a user enters and leaves a page (via window.load and window.unload). I'm recording the time of arrival/departure server-side. I'm noticing some instances where there is an…

wrkyle
- 529
- 1
- 13
- 36
0
votes
1 answer
Message for quitting a page only working with Edge and not Chrome and Firefox
I am currently working on a website and there is a page with a form. When the user tries to leaves this page, I want a confirmation message to show up. This is how I did it:
In the JSP file (the website is made with Struts2):

Gaëtan
- 779
- 1
- 8
- 26
0
votes
2 answers
JavaScript window.location.replace works in Firefox but not IE or Chrome
The following script works marvelously in FireFox but has no success at all in IE or Chrome....I've been pounding my head for hours on this stupidity....any help is appreciated.