I am redirecting the user from first.html page to some other url(for eg: google.com). After the user is redirected, I want to make changes in the current webpage.
window.location.href = "https://google.com"
window.onload=function(){
document.getElementById('content').innerHTML = "Change the text"
console.log("****")
}
The problem is that there is no change in the text. Also **** is not printed in console. What is going wrong ?