+ 3
window.onunload not working
I added the following lines to this code: window.onunload = function() { alert("Thank You!"); }; It doesn't seem to display the pop up. What's wrong? https://code.sololearn.com/WQ9vNh4dJsMF/?ref=app
5 Answers
+ 1
It's working for me.
Check again by adding alert()
+ 1
Jayakrishnađźđł I need the alert when I exit from the output screen
+ 1
Like
<input type = "number" id = "celsius" value = "0" placeholder ="Celsius" onfocusout="alert(value)">
?
+ 1
Jayakrishnađźđł
is window.onunload not used here?
+ 1
Oh I read it as onload!! đ
but Where are using? I tried by adding... For me its getting 'Blocked alert on unload' message. ..
I think may not work here, sry Not sure...