Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have the below code in CEWP and I l like that function runs after when the SharePoint site elements are loaded:


<html> 
<head> 

<script language="JavaScript" type="text/JavaScript">

go ()

function go() {

...

}


</script>  
</head> 
</html>
share|improve this question
    
Is that a JavaScript function? You can use _spBodyOnLoadFunctionNames.push as given _spBodyOnLoadFunctionNames –  Arsalan Adam Khatri Mar 22 '13 at 12:42
add comment

1 Answer

If you are using JQuery this function just should be loaded in

$(document).ready(function() 
{  
// Handler for .ready() called.
});

Here is the link to definition

Hope it helps,

Andrew

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.