Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get a href value javascript

document.getElementById("aaa").href; // http://example.com/sec/IF00.html
//while the one below gets the value of the href attribute:
document.getElementById("aaa").getAttribute("href"); // sec/IF00.html
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript compare two dates 
Javascript :: jquery find id with string at end 
Javascript :: express api make 
Javascript :: return index of array with function in array angular 
Javascript :: number pyramid in javascript 
Javascript :: react native text input number only 
Javascript :: javascript to help find overflow elements 
Javascript :: docker react js 
Javascript :: create array javascript numbers 
Javascript :: hide html element with javascript 
Javascript :: connecting mongoose with express js 
Javascript :: tailwind in react 
Javascript :: immediately invoked function in javascript 
Javascript :: back button js 
Javascript :: how to create react native project at specific version 
Javascript :: js encode to & 
Javascript :: variable key name js 
Javascript :: print json pretty linux 
Javascript :: if media queries jquery 
Javascript :: how do i remove all vowels from a string in javascript and return the result 
Javascript :: firebase storage javascript delete document 
Javascript :: toggle attribute jquery 
Javascript :: window closing event js 
Javascript :: javascript get random array of integre in given range 
Javascript :: dynamically adding marker react native mapbox 
Javascript :: add variables in javascript 
Javascript :: scrollheight jquery 
Javascript :: javascript remove all style values in div 
Javascript :: find class using jquery 
Javascript :: javascript alert get text 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =