Jquery redirect to another page

<a href=”#” class=”btn btn-default” id=”btnDoNotAllow”>Do not allow</a>

$(“#btnDoNotAllow”).click(function () {
$(location).attr(‘href’, ‘NotAllowed.html’);
});

 

Leave a Reply

Your email address will not be published. Required fields are marked *