JS

JAVASCRIPT REDIRECT WITH PARAMETERS 

NO JAVASCRIPT REQUIRED, JUST SUBMIT HTML FORM. <form action="URL">   <input type="text" name="name"    required value="Jon"/>   <input type="email" name="email"   required value="jon@doe.com"/>   <input type="submit" value="Go"/> </form>

HTML FORM ONLY

01

function redirect () {   URL SEARCH PARAMETERS   var query = new URLSearchParams();   query.append("name", "Jon");   query.append("email", "jon@doe.com");     APPEND TO URL   location.href = "URL?" + query.toString(); } <button onclick="redirect()"> Demo</button>

SEARCH PARAMETERS

02

function redirect () {   SEARCH PARAMETERS   var params = "name=" +    encodeURIComponent("Jon");   params += "&email=" +   encodeURIComponent("jon@doe.com");   REDIRECT   location.href ="URL?" + params; } <button onclick="redirect()"> Demo</button>

MANUAL PARAMETERS

03