Open stronghasu opened 10 months ago
<button onclick="alertMessage('아이디를 입력하세요')">1번버튼</button> <button onclick="alertMessage('비밀번호를 입력하세요')">2번버튼</button> function alertMessage(msg) { document.getElementById("alert").innerHTML = msg; }