Skip to content

Instantly share code, notes, and snippets.

@arnorhs
Created March 19, 2018 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnorhs/4f4d0ed5434fcba27368d9703de2765e to your computer and use it in GitHub Desktop.
Save arnorhs/4f4d0ed5434fcba27368d9703de2765e to your computer and use it in GitHub Desktop.
see all forms on a website
Array.prototype.forEach.call(document.forms, f => { console.log('[' + f.method + '] ' + f.action); console.table(Array.prototype.map.call(f.elements, el => { return {name: el.name, nodeName: el.nodeName } }))})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment