Back to the lesson

Hide self

importance: 5

Create a button that hides itself on click.

Like this:

Can use this in the handler to reference “itself” here:

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