s_hausen
asked on
confirmation before leaving page
hi,
i've a situation, where users have to fill out a very lengthy form. and i want users get confirmation when they try to close the browser or browser tab or click any link on the page. but if they hit the submit or archive button they won't get that alert. any help comment or feedback would be deeply appreciated.
i've a situation, where users have to fill out a very lengthy form. and i want users get confirmation when they try to close the browser or browser tab or click any link on the page. but if they hit the submit or archive button they won't get that alert. any help comment or feedback would be deeply appreciated.
<html>
<head>
<title>test</title>
<script>
</script>
</head>
<body>
<p><a href="http://www.yahoo.com">link</a></p>
<form method="post" name="Form1" action="#">
<input type="text" name="fname" id="fname" size="32" />
<input type="text" name="lname" id="lname" size="32" />
<br />
<input type="submit" name="archive" id="archive" value="archive" />
<input type="submit" name="submit" id="submit" value="save" />
</form>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.