[JavaScript] DOM 요소를 조작해보자


[JavaScript] DOM 요소를 조작해보자

document.createElement() HTML element를 만들어주는 method. In an HTML document, the document.createElement() method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn't recognized element.setAttribute(name, value) Sets the value of an attribute on the specified element. If the attribute already exists, the value is updated; otherwise a new attribute is added with th..


원문링크 : [JavaScript] DOM 요소를 조작해보자