#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http 제목html Alert 예제 질문입니다2021-11-27 15:08작성자dd사용자의 입력값을 받는 id의 type을 number로 지정을 해준다고 적었는데왜 text도 입력이 되는지 잘 모르겠습니다ㅠㅠ<head> <title>Alert Page</title> <script> function myAlertMath() { var userNumber = document.getElementById("mathInput").value; alert("Your number X 5 is " + userNumber*5); } </script></head><body> <p> JavaScript Alert Tests.</p> <button onclick="alert('The test worked');">Alert Test</button> <input id="mathInput" type="number"/> <button onclick="myAlertMath();"> Multiply X 5</button></body> 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)내용(*) 댓글 등록 더보기이전[re]input함수 prompt조교 김승훈2021-11-29다음[re]html Alert 예제 질문입니다조교 전현진2021-11-29 Powered by MangBoard | 워드프레스 쇼핑몰 망보드