Fe-interview: [html] 第212天 如何自动转移到新的页面?

Created on 13 Nov 2019  ·  2Comments  ·  Source: haizlin/fe-interview

第212天 如何自动转移到新的页面?

我也要出题

html

Most helpful comment

<head>内引入

<meta http-equiv="refresh" content="0; url=http://example.com/">

content内第一个参数是延迟,单位秒,0为立即跳转
参数url是跳转地址

All 2 comments

window.location.href = `https://www.google.com`;

<head>内引入

<meta http-equiv="refresh" content="0; url=http://example.com/">

content内第一个参数是延迟,单位秒,0为立即跳转
参数url是跳转地址

Was this page helpful?
0 / 5 - 0 ratings