href has javascrip value how to get url code example Example: get href attribute javascript document.getElementById("link")[0].getAttribute("href");