button submit 막기

2022. 1. 7. 17:37html

form 안에 있는 button 은 자동으로 submit 기능을 한다. form 안에 있어도 submit 기능을 하지 않게 하기 위해서는 아래와 같이 코딩한다.

<button type="button">버튼</button>