_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’;
}
{
document.getElementById(‘ctl00_fullscreenmodeBtn‘).style.visibility = ‘hidden’;
}

Abhay ShankerPosted Mar 28, 2014, 8:14 AM
yes..