开发者

Redirect page when Javascript is disabled

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜