Jump to content

sending page back to top


adamlacombe

Recommended Posts

I have this code here:

<script type="text/javascript">
var auto_refresh = setInterval(
function ()
{
$('#load_news').load('ajax/news.php').fadeIn("slow");
}, 10000); // refresh every 10000 milliseconds

</script>

 

and every time it refreshes the file it shoots me back to the top of the page. is there a way to stop this from happening?

 

Thanks in advanced,

Adam

Link to comment
https://forums.phpfreaks.com/topic/231725-sending-page-back-to-top/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.