Can I compare hrefs on a button using an if-statement in JavaScript?
I have Button A with href "www.A.com". Im trying to figure out condition to achieve this: If button's href != "www.A.com", then function rewritte button's href to "www.A.com". I imagine whole function like this: <script> var x = document.getElementById("button A");…