+ 3

onUnLoad not working, pls help as I have tried running on different browser but not happen.

JSC

23rd Nov 2016, 2:25 PM
Wamunau Ishioma Kenneth
Wamunau Ishioma Kenneth - avatar
4 Réponses
+ 3
I think you want document.onload not document.onunload use it if that does not work then write document.addEventListener("load",function()); or attach only to element
23rd Nov 2016, 6:23 PM
Sandeep Chatterjee
+ 2
it is .onunload all lower case
23rd Nov 2016, 3:52 PM
Sandeep Chatterjee
+ 1
Thanks a lot but not still working, just display the body but no effect of JS when refreshed or closing
23rd Nov 2016, 6:20 PM
Wamunau Ishioma Kenneth
Wamunau Ishioma Kenneth - avatar
+ 1
it's working with a capital letter onUnLoad="instruction"
31st Jul 2017, 4:03 PM
Oscar Efrain Dominguez Machain
Oscar Efrain Dominguez Machain - avatar