|
This is just some of the codes you can use to make prompts.if you are just not well equipped i recommend get a tutorial it would be better.
<script language="JavaScript">
window.onbeforeunload = confirmExit;
function confirmExit()
{
return "You are about to leave this page. If any changes you made may be lost. Are you sure you want to exit this page?";
}
</script>
|