HTML
[HTML] button태그에 type이 없으면 submit type 이다.
힘없는염소
2016. 2. 3. 10:53
1 2 3 4 5 6 7 8 9 10 11 12 13 | <!DOCTYPE html> <html lang="ko"> <head> <meta charset="utf-8"> </head> <body> <!-- form태그 속한 button태그에 type을 명시하지 않으면 기본 type은 submit이다. <button type="submit"> --> <form action="./xxx.html"> <button>버튼!! 헐</button> <!-- <button type="button">버튼</button> --> </form> </body> </html> |
반응형