Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js getattribute

const link = document.querySelector('a');

console.log(link.getAttribute('href'));
 
PREVIOUS NEXT
Tagged: #js #getattribute
ADD COMMENT
Topic
Name
1+5 =