<HTML>
<body>
<input type = "button" id="hider" value="Click to hide the text"
onclick="this.hidden = true"/>
<script>
</script>
</body>
</HTML>
<body>
<input type = "button" id="hider" value="Click to hide the text"
onclick="this.hidden = true"/>
<script>
</script>
</body>
</HTML>
//I tried to fix the eventlistener fucntion
//but then the solution used HTML attrubute which is much simpler
//it feels odd to write onclick="this.hidden = true"
//it feels as if I am adding a raw line of code for this little bracket machine to run
댓글
댓글 쓰기