You can use the 'onbeforeunload' event:
<script>
function reset_options() {
document.getElementById('MySelect').options.length = 0;
return true;
}
</script>
<body onbeforeunload="reset_options()">
<script>
function reset_options() {
document.getElementById('MySelect').options.length = 0;
return true;
}
</script>
<body onbeforeunload="reset_options()">
No comments:
Post a Comment