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

5 lines
168 B
Markdown

Can use `this` in the handler to reference "the element itself" here:
```html run height=50
<input type="button" onclick="this.hidden=true" value="Click to hide">
```