Question and answer is powered by AnsPress.io
I want to delay for sometime, when I click on a href link. I am using Laravel Framework. So need help.
Try to use jquery for that.
<a id=”mylk” href = {{ url( ) }}>abcd</a>
<script>
$(‘#mylk’).on(‘click’, function(e) {
e.preventDefault();
setTimeout(function() {
window.location.href = this.href;
}, 2000);
});
</script>