Javascript - Where i'm making a mistake?
<p>i'm creating that script if someone delete the text or link on footer of my template it will redirect to my site, but its redirecting without removing anything.</p>

<pre><code>function loadBody() {
 var elem = document.getElementById("mycontent");
if(elem.innerHTML !== "MySite" || elem.href !== "http://mysite.com")
  window.location="mysite.com"; 
}
</code></pre>

<p>here is the footer html</p>

<pre><code> &lt;div id='mycontent'&gt;       
  &lt;p&gt;&amp;#169; Template is designed by  &lt;a href='http://mysite.com' title=''&gt;Mysite&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
</code></pre>

<p>thanks in advance.</p>
