$(document).ready(function() { RefreshTitles(); }); function addTimeStamp(){ tstmp = new Date(); return tstmp.getTime(); } function RefreshTitles() { $.ajax({ contentType: "text/html; charset=utf-8", type: "GET", url: "update.asp?sid=82&langID=1×tamp="+addTimeStamp(), dataType: "html", success: ShowTitleArtist }); } function ShowTitleArtist(htmltext) { $("#nowMeta").html(htmltext); } var oRefresh; oRefresh = window.setInterval("RefreshTitles()", 40000);