Tei*_*eiv 0 html javascript redirect
<script>
function test() {
alert("this should only be called after the browser is fully redirected?");
}
window.location = "http://google.com";
test();
</script>
Run Code Online (Sandbox Code Playgroud)
我是要将用户重定向到一个页面,我想在浏览器完全重定向后才能做某事(调用一个函数),但我无法让它工作.我有什么方法可以这样做吗?
| 归档时间: |
|
| 查看次数: |
76 次 |
| 最近记录: |