【发布时间】:2021-09-25 09:08:10
【问题描述】:
我将用户从 first.html 页面重定向到其他 URL(例如:google.com)。用户重定向后,我想在当前网页中进行更改。
window.location.href = "https://google.com"
window.onload=function(){
document.getElementById('content').innerHTML = "Change the text"
console.log("****")
}
问题是文本没有变化。 **** 也不会在控制台中打印。 怎么了?
【问题讨论】:
标签: javascript html css web redirect