I set up a page redirect using javascript, and the "Form" method from the following website:
https://webworkshop.net/auto-redirecting_methods
几周前我就设置好了,然后就可以了。然而,当我看到它时,它不再工作了。
任何人都可以对此有所了解吗?
由于
标记
答案 0 :(得分:0)
看起来你只是想重定向:
您可以使用JavaScript和HTML元标记
<!doctype>
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://www.yourdomain.com/new-page.html">
</head>
<body>
Auto refresh in 0 seconds
</body>
</html>
另一种方法是使用JavaScript,如下所示:
<!doctype>
<html>
<head>
<script>
window.location = 'http://www.yourdomain.com/new-page.html';
</script>
</head>
<body>
This would also redirect as soon as the page loads.
</body>
</html>
希望有所帮助