scrollTop only working in Firefox
<p>The script works fine in Firefox, but in other browsers the jump to functions does not work. It only highlights the found term. Please help!</p>

<pre><code>function highlightTerms()
{
   var searchTerm = $('#search-term').val();
     $("p:contains('"+searchTerm+"')").addClass('highlighted');
}

function unhighlight()
{
  $('.highlighted').removeClass('highlighted');
}

function scrollToFirstFoundTerm()
{
   var firstFoundTerm = $('.highlighted:first');
   if (firstFoundTerm.length &gt; 0)
      $('html').scrollTop(firstFoundTerm.offset().top);
}

function searchAndHighlight()
{
   unhighlight();
   highlightTerms();
   scrollToFirstFoundTerm();

}
</code></pre>

<p>Thank you for the help!</p>
