how to load a page on button click in javascript code example Example: javascript load page window.location = "https://example.com/";