redirect to another page in php using javascript code example Example: javascript howdo i redirect-to another webpage window.location = "https://example.com/";