button을 눌렀을 때 alert

차민혁·2022년 2월 19일
0

<script>
function btn(){
    alert('클릭 시 출력할 문구');
}
</script>

<html> <head> </head> <body> <button onclick="javascript:btn()"> 내용 </button> </body> </html>

0개의 댓글