time delayed redirect?

前端 未结 6 1494
花落未央
花落未央 2020-11-27 18:19

I have a website which slides to a \"section\" called blog in my HTML. I want the user to simply see the page for a brief second or 2 then redirect to my blog engine.

<
6条回答
  •  渐次进展
    2020-11-27 18:48

    You can include this directly in your buttun. It works very well. I hope it'll be useful for you. onclick="setTimeout('location.href = ../../dashboard.xhtml;', 7000);"

提交回复
热议问题