I want the following URL to be manipulated and opened in a new tab once I pass the value of email ID and click submit. The searchText in myUrl is the param for email ID:
HTML:
<textarea name="email" id="email" cols="30" rows="10"></textarea>
<button id="myButton">submit</button>
JavaScript:
const myUrl = new URL('something.com?searchText=weijsdo@hotmail.com&site=something&mobileVersion=&locale=&forceAaaApplication=');