[JS] Click 이벤트

sohyun_·2022년 11월 28일
0
<button onclick="test()">클릭</button>
<p id= "testing"></p>

<script>
  function test(){
  	document.getElementById("testing").innerHTML="이 링크로 연결"
  }
</script>

--ing

profile
web backend developer

0개의 댓글