如何让页面在X秒后跳转到新的网页。如果可能的话,我想使用HTML,但是有一种肮脏的感觉告诉我它必须是Javascript。
到目前为止,我有以下但没有时间延迟
<body onload="document.location='newPage.html'">
发布于 2018-05-30 11:42:46
<meta http-equiv="refresh" content="5;url=http://example.com/"/>
发布于 2018-05-30 11:48:30
如果你正在使用JS路线
setTimeout("window.location.href = 'newPage.html';", 5000);
https://stackoverflow.com/questions/-100000140
复制相似问题