attribute 개체를 지정된 이름(name)으로 생성한다.
![]() | Script | [oVal=]document.createAttribute(sName) |
반환값 oVal는 새로운 애트리뷰트 개체의 참조를 반환한다.
sName 파라메터 값이 유니코드 글자(UTF(Unicode transformation format-16)가 아니어 유효하지 않은 문자를 포함하고 있으면 이 메서드는 실패할 것이다.
개체 | script | IE |
---|---|---|
document | document.createAttribute(sName) | IE6(win32) |
이 메서드는 (영어)DOM Level 1(Document Object Model Level 1)에서 정의되었다.
![]() | createAttribute 메서드 | ![]() ![]() |
최종 수정: 06/02/2025 06:42:09 | ![]() All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/method/createAttribute.html |