spBodyOnLoadFunctionNames in SharePoint

_spBodyOnLoadFunctionNames.push() is SharePoint's version of jQuery's $(document).ready() function.It takes the function names as  a string parameter.
 
For Example
 
 _spBodyOnLoadFunctionNames.push('HidepromotedResults');
function HidepromotedResults()
{
    
document.getElementById(‘ctl00_fullscreenmodeBtn‘).style.visibility = ‘hidden’;
}
 


 

Ebook Download
View all
Learn
View all