JavaScript Indexing

{object_name}

ObjectAttr.prototype

Details

요소(element)의 애트리뷰트(attribute)를 다루는 인터페이스이다.

생성자

구문

형식
document.createAttribute("src");

srcname으로 갖는 Attr 객체를 생성한다.

Attr 객체를 직접 생성
형식
element.getAttributeNode('src')
Element.prototype.getAttributeNode() 메소드를 사용한 Attr 객체 참조