I want to add a delay time for an href
href = {{ page( ) }}
I want to add a delay time before redirecting to the next page .
I want to add a delay time for an href
href = {{ page( ) }}
I want to add a delay time before redirecting to the next page .
There is no option for it in Laravel. You can do it with JS:
<a id="theLink" href = {{ page( ) }}>LINK</a>
<script>
$('#theLink').on('click', function(e) {
e.preventDefault();
var self = this;
setTimeout(function() {
window.location.href = self.href;
}, 2000);
});