window.onload = function () { if(document.getElementsByClassName("access-screen--btn")){ document.getElementsByClassName("access-screen--btn").setAttribute("href", "https://www.google.com"); console.log("Hyperlink Changed"); } }