javascript on button click open different page code example Example: javascript load page window.location = "https://example.com/";