How to delay Jump in javascript
Today, I will talk to you about how to delay the jump in javascript. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
1. You can use the setTimeout () function with the "location.href" attribute to achieve delayed jump.
2. Syntax "setTimeout (function () {_ window.location.href=' jump address';}, delay milliseconds);".
Example
JavaScript
Jump after 5 seconds
Function jump () {_ window.location.href=' http://www.baidu.com/';}setTimeout(jump,5000); after reading the above, do you have any further understanding of how to delay the jump in javascript? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.