Firefox Javascript URL redirect
<p>I'm working on a mock version of censored google for history class. The user enters in a search term, and if the term is "censored" they will be taken to a censor page, otherwise they would go straight to the actual google page. However, in Firefox only, the search seems to not be redirecting to the google page while only the censor portion of the script works. I checked in Google Chrome, and it works fine. Any ideas?</p>

<p>Here is the code:
HTML:
 </p>

<pre><code>    &lt;input type="text" id = "search" name="search" size="85" onKeyUp="searchCensor()"/&gt;&lt;br /&gt;        
</code></pre>

<p>Javascript:</p>

<pre><code>function searchCensor() 
{
    var keyTerms = document.getElementById("search").value;
    if(keyTerms == "censorship")
        window.location = "http://andrewgu12.kodingen.com/history/censor.php";
    else if(window.event.keyCode == 13)
        window.location = "https://www.google.com/search?q="+keyTerms;
}
</code></pre>

<p>website: <a href="http://andrewgu12.kodingen.com/history/" rel="nofollow">http://andrewgu12.kodingen.com/history/</a></p>
