Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tag name javascript

var heading = document.getElementsByTagName("h1");
// this gets all the h1 tag from html document
// you can let any tag from html and store in a desired variable for manipulation
 
PREVIOUS NEXT
Tagged: #tag #javascript
ADD COMMENT
Topic
Name
8+1 =