Answers for "page redirect after load"

0

page redirect after load

window.onload = function() {
    // similar behavior as clicking on a link
    window.location.href = "https://google.com";
}
Posted by: Guest on May-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language