I want to create a simple text box for redirecting to a website. It is part of the xss which I want to implement.
parent.location.href = "https://www.google.com";
Is the code which I want to redirect but I just want to make the text box like below, and if he enters the correct or wrong text it should redirect to the website. I have only included ok but can we use cancel only so that redirection performs well?