JavaScript Formulário de pré -preenchimento
const object = new URL(window.location.href);
object.searchParams.forEach((x, y) => document.getElementById(y).value = x);
lff
const object = new URL(window.location.href);
object.searchParams.forEach((x, y) => document.getElementById(y).value = x);