javascript get id of child element

Heavy is the head that wears the crown. The X coordinate of the mouse pointer relative to the whole document. Activates a tab element and content container. However since in your example you also had a parent element which you are able to retrieve by id, you could also use this instead. Method#3: Using str.substr() function: The str.substr method returns the specified number of characters from the specified index from the given string. I'm trying to get all the elements (tags) inside the Body tag of an HTML page in an array using pure javascript. table-layout: auto fixed: auto is the default. Instead, switch to an alternative element (in the example below, a simple

) and wrap the