document.createElement("태그명")
document.createTextNode("텍스트")
객체명.insertBefore(newChild,refChild)
객체명.replaceChild(newChild,oldChild)
객체명.removeChild(oldChild)
객체명.appendChild(newChild)
객체명.parentNode
객체명.childNodes
객체명.previousSibling
객체명.nextSibling
'개발하자 > 자바스크립트' 카테고리의 다른 글
태그생성해서 추가하기 (0) | 2015.02.26 |
---|---|
createElement, appendChild (0) | 2015.02.26 |
select 한 option 값을 이용해서 배경색바꾸기 onchange사용의 예 (0) | 2015.02.26 |
주소선택해서 이전창으로 불러오기 (0) | 2015.02.26 |
text value값을 id로 이용하기 eval,getElementById (0) | 2015.02.26 |