The syntax recommended by W3C standards is to obtain an element in the DOM tree through the document document object. Common methods include getElementById(), getElementsByName(), and getElementsByTagName(). Their functions are through the id attribute and name attribute/tag name respectively. Returns a single node or collection of nodes.
Click on the header to pop up the content of myHeader
, pop up:
When click:, pop up:
When click:
, pop up:
Especially in the following code,