javascript onclick function load page code example Example: javascript load page window.location = "https://example.com/";