입력 파일업로드 유형 속성
예시
파일 업로드 버튼이 어떤 유형의 양식 요소인지 확인하십시오.
var x = document.getElementById("myFile").type;
정의 및 사용
type 속성은 파일 업로드 버튼이 어떤 유형의 양식 요소인지를 반환합니다.
파일 업로드 버튼의 경우 이 속성은 항상 "파일"을 반환합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
통사론
fileuploadObject.type
반환 값
Type | Description |
---|---|
String | The type of form element the file upload button is |
❮ FileUpload 객체 입력