Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

prevent page refresh

// Can be implemented via window.onbeforeunload.
// For example:
<script type="text/javascript">
    window.onbeforeunload = function() {
        return "Are you sure you want to leave?";
    }
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #prevent #page #refresh
ADD COMMENT
Topic
Name
2+2 =