Try the getAttribute
method instead.
More Related Contents:
- How can I disable HREF if onclick is executed?
- anchor jumping by using javascript
- Adding The Anchor Text As The Title Dynamicaly
- Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?
- offsetting an html anchor to adjust for fixed header [duplicate]
- How can you check for a #hash in a URL using JavaScript?
- window.location.href and window.open () methods in JavaScript
- How do I programmatically click a link with javascript?
- How to change href of tag on button click through javascript
- HTML tag want to add both href and onclick working
- Why is it bad practice to use links with the javascript: “protocol”?
- What is the difference between the different methods of putting JavaScript code in an ?
- Use anchors with react-router
- Get local href value from anchor (a) tag
- offsetting an html anchor to adjust for fixed header [duplicate]
- jQuery Text to Link Script? [duplicate]
- Make anchor link go some pixels above where it’s linked to
- Wrap link around
- HTML anchor link – href and onclick both?
- Opening new window in HTML for target=”_blank”
- Test if links are external with jQuery / javascript?
- Stop link from sending referrer to destination
- javascript regex to extract anchor text and URL from anchor tags
- how to exchange variables between two HTML pages?
- ScrollTo function in AngularJS
- Smooth scroll anchor links WITHOUT jQuery
- HTML anchor tag with Javascript onclick event
- How to use normal anchor links with react-router
- problem with javascript: return false is not working
- Auto-Scroll to next anchor at Mouse-wheel