Learn free online HTML5, javascript, and jquery Tutorials by Examples

Monday 14 July 2014

how we can use f5 as a ctrl+f5 in jquery

--------------------------------------------------------
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>

<script>
$(document).keydown(function(e) {
    if (e.which == 116) {
        alert("ctrl+f5");
        location.reload(true);
    }
});
</script>


--------------------------------------------------------

No comments:

Post a Comment