+ 3
onUnLoad not working, pls help as I have tried running on different browser but not happen.
JSC
4 ответов
+ 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
+ 2
it is .onunload all lower case
+ 1
Thanks a lot but not still working, just display the body but no effect of JS when refreshed or closing
+ 1
it's working with a capital letter
onUnLoad="instruction"