<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.blogger.com/rsd.g?blogID=7487871339000666216" />
How can I get the href attribute of this link tag without using the javascript library?
I am now using the code below to achieve this, but I want to know if there is a simpler solution.
var links = document.getElementsByTagName("link"); for (i in links){ var title = links[i].getAttribute("title"); if ( title == "RSD"){ var href = links[i].getAttribute("href"); break; } }
javascript
WTFIsGoingOn
source share