Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change href javascript

<!DOCTYPE HTML>
<html>

<body>
	<a id="myLinkId" href="abc.com" >Auto update href</a>

	<script>
		var findlink = document.getElementById("myLinkId");
		findlink.href = "xyz.com";
	</script>

</html>
Source by tutorial.eyehunts.com #
 
PREVIOUS NEXT
Tagged: #change #href #javascript
ADD COMMENT
Topic
Name
8+4 =