While changing the href through javascript getting this error.Not able to change the href through javascript
<script type="text/javascript">
var element = document.querySelector('a[href="www.google.com"]');
element.href = "http://stackoverflow.com";
</script>
<div id="footer">
<ul>
<li>
<a target="_blank" href="http://www.google.com">Google</a>
</li>
</ul>
</div>