[JavaScript] function
by golduny_zoo 2022. 1. 19. 16:00
<div id = "alert"> <p>알림</p> </div> <button onclick="누르면알림을띄우기('block')"> 버튼 </button> <scirpt> function 누르면알림을띄우기(파라미터){ document.getElementById('alert').style.display = 파라미터; } </scirpt>