Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript prefill form

const object = new URL(window.location.href);
object.searchParams.forEach((x, y) => document.getElementById(y).value = x);
 
PREVIOUS NEXT
Tagged: #javascript #prefill #form
ADD COMMENT
Topic
Name
6+1 =