<script language="JavaScript">
window.onbeforeunload = confirmExit;
function confirmExit()
{
return "Ha intentado salir de esta pagina. Si ha realizado algun cambio en los campos sin hacer clic en el boton Guardar, los cambios se perderan. Seguro que desea salir de esta pagina? ";
}
</script>
"Sometimes" script tags need to be wrapped in a literal tag
<literal>
<script type="text/javascript">
whatever code
</script>
</literal>
type= is also no longer require nor is language = but i like using the type, old habbit..
I did a quick test for him at https://codepen.io/ , I didn't even put in a text in English.
When he answered that it didn't work for him I did a quick test on any OxWall HTML and it worked too.
It wasn't a programming example, I just wanted to bring up the idea of using the event window.onbeforeunload from JavaScript.
You're right, Dave! :)