Ask your own question, for FREE!
Design 11 Online
OpenStudy (dangerousjesse):

Onbeforeunload event question

OpenStudy (dangerousjesse):

How do you make an onbeforeupload event actually work when you're writing a script? I can make text, links, and photos appear when I edit pages, but I can't make events occur when I want them to. Is there a "blank slate" website I can use to practice on, or do I have to use JavaScript?

OpenStudy (e.mccormick):

As far as I can tell, that is JS. So yes, JS would be needed for a JS line of code to work. https://developer.mozilla.org/en-US/docs/Web/API/Window.onbeforeunload

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!