• 회원가입
  • 로그인
  • 구글아이디로 로그인

[form] HTML - <input type="reset"> 태그 - 입력창 초기화/재설정 (= 입력한 폼데이터 비우기 = 인풋리셋타입/리셋타입인풋/리셋인풋 요소)

목차
  1. <input type="reset"> 예제 - 입력창 초기화
  2. <input type="reset"> 정의
  3. <input type="reset"> 구문

 

<input type="reset"> 예제 - 입력창 초기화

 

<form action="/action_page.php">

  <label for="id">아이디 입력:</label>

  <input type="text" id="id" name="id"><br>

  <label for="password">패스워드 입력:</label>

  <input type="password" id="password" name="password"><br>

  <input type="reset" value="초기화">

  <input type="submit" value="확인">

</form>


결과보기

 

<input type="reset"> 정의

 

입력한 폼데이터를 지워 모든 입력창을 초기화하는 INPUT 요소.

 


 

1.

  • 실수로 클릭 시 입력값이 다 사라지므로, sumbit 버튼 옆에 절대 두지 말 것.
  • value 속성 추가해 버튼명 변경 가능.

 

2.

모든 브라우저 지원.

 

3. MDN <input type="reset"> 예제보기

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/reset

 

 

<input type="reset"> 구문

 

<input type="reset">

 

 


분류 제목
attribute HTML - onsuspend 속성 - (오디오/비디오)를 브라우저가 일시중지 시킬 때 실행 (= onsus…
attribute HTML - lang 속성 - 요소 내용 언어코드 지정 (= lang속성 = 랭속성)
attribute HTML - required 속성 ★ - 폼데이터 제출 전 (입력필수/선택필수) 지정 (= required속…
attribute HTML - onprogress 속성 - (오디오/비디오) 다운로드 시 실행 (= onprogress속성 =…
attribute HTML - onmouseout 속성 ★ - 마우스커서가 지정요소 밖으로 이동 시 실행 (= onmouseo…
etc HTML - 스크린리더기가 읽는 HTML요소 정보값 종류 (= Screen Reader provides th…
attribute HTML - onselect 속성 - 요소 내용 선택 시 실행 (= onselect속성 = 온실렉트속성) ※…
attribute HTML - onmouseup 속성 - 마우스버튼 올라갈 때 실행 (= onmouseup속성 = 온마우스업속…
attribute HTML - list 속성 - 인풋에 입력 가능한 데이터리스트 지정 (= list속성 = 리스트속성) ※ 입…
attribute HTML - defer 속성 ★★★ - 페이지 파싱 완료 후 외부스크립트 실행 (= defer속성 = 디퍼속…
attribute HTML - ondrag 속성 - 드래그 이벤트 시 실행할 코드 지정 (= ondrag속성 = 온드래그속성)…
attribute HTML - tabindex 속성 - 탭색인번호 지정 (= tabindex속성 = 탭인덱스속성) ※ 탭넵비게…
attribute HTML - on으로 시작하는 속성에서 2개 이상의 여러 JS함수 실행 방법
attribute HTML - onreset 속성 - 폼 초기화 시 실행 (= onreset속성 = 온리셋속성) ※ onres…
attribute HTML - data-* 속성 ★★★ - 특정 (페이지/애플리케이션)의 사용자 데이터 저장 (= data-속…
attribute HTML - onvolumechange 속성 - (오디오/비디오) 볼륨변경 시 실행 (= onvolumech…
attribute HTML - oncopy 속성 - 요소의 텍스트나 이미지 태그를 복사 시 실행 (=oncopy속성 = 온카피…
form HTML - <input type="datetime-local"> 태그 - 년월일시분 입력 (= 인풋데이트타…
attribute HTML - ondurationchange 속성 - 재생시간 데이터가 변경될 때 실행 (= onduratio…
attribute HTML - content 속성 ★ - 메타데이터 값 지정 (= content속성 = 콘텐트속성|컨텐트속성)
4/18
목록
찾아주셔서 감사합니다. Since 2012