I would like to change the href of the in this code:
<div class ="amp-logo">
<a href="http://www.google.com" title="Google"></a>
</div>
I tried to use this code:
<script>
let link = document.querySelector('.amp-logo').getElementsByTagName('a');
link.href = window.origin+'/blog';
<\script>
but my code is not working. Someone can help me?