开发者

Redirect page when Javascript is disabled

开发者 https://www.devze.com 2023-01-19 09:41 出处:网络
I need to redirect to another page when the client script is disabled on the browser. Can anyone please help?

I need to redirect to another page when the client script is disabled on the browser. Can anyone please help?

Than开发者_开发问答ks


I haven't tested this but it should work.

Content inside <noscript> fires when there is no Javascript enabled, so you can do a <meta /> redirect like this.

<noscript>
    <meta http-equiv="refresh" content="0; URL=path-to-no-js-page.html"">
</noscript>
0

精彩评论

暂无评论...
验证码 换一张
取 消