How to do AutoRefresh in SharePoint Webpart automatically in SharePoint 2010/2013/2016?

Hello SharePointers,

In this blog, we can add the below jquery code in content editor webpart to refresh any specific sharepoint webpart.

 

<script type=”text/javascript”>
$(function () {
setInterval(refreshmyWebPart, 300000);
});
function refreshmyWebPart(){
$(“#WebPartWPQ3 iframe”).attr(“src”,$(“#WebPartWPQ3 iframe”).attr(“src”));
}
</script>

Happy SharePointing Folks 🙂

Leave a Reply

Your email address will not be published.