I want to execute a javascript function that shows a message loading on the page, ie while the page loads, the message appears on the screen, however I do not know how to use it in html5 with javascript, as I am using required
(validation within html, without js)
I've heard of the onbeforeunload
function, but it's discontinued, does it have a function that replaces it?