Skip to content

Instantly share code, notes, and snippets.

@fgilio
Created September 29, 2016 16:01
Show Gist options
  • Save fgilio/4842bc9df99d30ebed0e7a73d39b9e95 to your computer and use it in GitHub Desktop.
Save fgilio/4842bc9df99d30ebed0e7a73d39b9e95 to your computer and use it in GitHub Desktop.
Remove onclick attribute from DOM element
document.getElementById('remove-onclick').removeAttribute("onclick");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment