jquery - External HTML in overlay; can I scroll to top? -


my overlay div this:

 <div class="apple_overlay" id="overlay">            <div class="contentwrap">     </div> </div> 

i summon external html file this:

<a href="external.html" onclick="showx();" rel="#overlay" style="text-decoration:none;"> 

it loads fine. if close overlay, , open again, content still scrolled down when closed. there way can external content refresh, or scroll top?

i tried this, didn't work:

$('.apple_overlay').scrolltop($('#' + overlay).offset().top); 

any assistance appreciated.


Comments

Popular posts from this blog

javascript - Replicate keyboard event with html button -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Web audio api 5.1 surround example not working in firefox -