Javascript HTML Redirect : <p>Code Purpose Question</p>

<p>I am trying to determine the purpose of the line:
    window.location = "<a href="https://google.com" rel="nofollow noreferrer">https://google.com</a>";</p>

<pre><code>&lt;&lt;!-- For IE &lt;= 9 --&gt;
&lt;!--[if IE]&gt;
&lt;script type="text/javascript"&gt;
    window.location = "https://google.com";
&lt;/script&gt;
&lt;![endif]--&gt;

&lt;!-- For IE &gt; 9 --&gt;
&lt;script type="text/javascript"&gt;
    if (window.navigator.msPointerEnabled) {
        window.location = "http://bobabend.com/index-old-as-of-3-7-2019.html";
    }
</code></pre>
