Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 ajax.net 做一些 js。如下所示:
ScriptManager.RegisterStartupScript(提交, typeof(Button), "alert", "location.href='test.aspx';", true);
如果用户关闭 javascript,它不会重定向到另一个页面。
我想知道如何设置<noscript></noscript>。
非常感谢!!
这里:
<noscript> <meta http-equiv="refresh" content="0; URL='no-script.aspx'"> </noscript>
我会使用 Response.Redirect("test.aspx") ,它不需要 JavaScript,大多数现代浏览器都应该支持它。