Reload page using jquery

Wednesday, 22 February 2012

Reload page using jquery


Include jQuery library file:
<script type="text/javascript" src="jquery-1.6.1.min.js"></script>


Assign the event on button click for relod the page

<script type="text/javascript">
        $(document).ready(function() {
            $('#Button1').click(function() {
                location.reload();
            });
        });    
</script>

No comments:

Post a comment