en.javascript.info/2-ui/2-events/01-introduction-browser-events/02-hide-self-onclick/solution.md
Ilya Kantor d9740908bf fixes
2019-05-16 13:37:25 +03:00

168 B

Can use this in the handler to reference "the element itself" here:

<input type="button" onclick="this.hidden=true" value="Click to hide">