Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

codingfarm

button 본문

web/HTML5

button

scarecrow1992 2020. 9. 27. 23:28
1
2
3
4
5
6
7
8
9
10
11
12
<html>
    <head><meta charset="utf-8"></head>
 
    <body>
        <form action="http://localhost/form.php">
            <input type="text">
            <input type="submit" value = "전송">
            <input type="button" value = "버튼" onclick="alert('hello world')"">
            <input type="reset">
        </form>
    </body>
</html>
cs

오른쪽의 버튼을 누르면 경고창이 뜬다.

 

'web > HTML5' 카테고리의 다른 글

label  (0) 2020.09.28
hidden  (0) 2020.09.27
radio, checkbox  (0) 2020.09.27
form_choice  (0) 2020.09.27
form  (0) 2020.09.27
Comments