Answers for "js .href"

0

link href javascript

document.getElementById("Element").href = "http://example.com/";
Posted by: Guest on May-25-2021
0

a href javascript

<a href="#" onclick="myJsFunc();">Run JavaScript Code</a>
Posted by: Guest on June-22-2021
0

javascript location.href

//example 1
document.getElementById("lbl_url").innerHTML = "Page location is " + window.location.href;
//example 2
var x = location.href;
Posted by: Guest on January-05-2021

Browse Popular Code Answers by Language