css loader when button click redirect to another page code example Example: javascript link to another page window.open("http://mywebsite.com/home.html")