demo · v147

Autofill Log

Trigger Chrome's autofill on this form (right-click → autofill, or pick a saved profile). The log captures each autofill event.

the listener

for (const input of form.elements) {
  input.addEventListener("autofill", (e) => {
    console.log(`${input.name} was autofilled with "${input.value}"`);
  });
}

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗