HTML网页自动跳转的两种方式

  • 方式一:meta

会先加载原有页面,加载完成后才跳转到目标页面。

<head> <meta http-equiv="refresh" content="5;url=https://www.cnblogs.com/guojbing"> </head>
  • 方式二:javascript

会直接跳转目标页面

window.location.href='https://www.cnblogs.com/guojbing';

不再让加密困扰软件开发者:https://www.cnblogs.com/ssprotect/p/14662917.html

原文地址:https://www.cnblogs.com/ssprotect/p/14662917.html