JQuery Redirect to URL after specified time

前端 未结 9 942
感动是毒
感动是毒 2020-12-07 17:20

Is there a way to use JQuery to redirect to a specific URL after a give time period?

9条回答
  •  隐瞒了意图╮
    2020-12-07 18:05

    You can use

        $(document).ready(function(){
          setTimeout(function() {
           window.location.href = "http://test.example.com/;"
          }, 5000);
        });
    

提交回复
热议问题