# Pastebin DLRDBuJj Example code for detecting whether a field was filled with autofill in chromium browsers at least: el.addEventListener('change', e => { console.log('change', e, el.closest("input:-webkit-autofill")==el); });