stronghasu / js-study

0 stars 0 forks source link

4강과제 #9

Open stronghasu opened 10 months ago

stronghasu commented 10 months ago
    <button onclick="alertMessage('아이디를 입력하세요')">1번버튼</button>
    <button onclick="alertMessage('비밀번호를 입력하세요')">2번버튼</button>

 function alertMessage(msg) {
        document.getElementById("alert").innerHTML = msg;
      }