Tuesday, July 17, 2012

Call JavaScript in SharePoint



<
asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">

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

  function CallJavascript()
    {
       alert("This is SharePoint");
    }

    _spBodyOnLoadFunctionNames.push(" CallJavascript ");

</script>

</ asp:Content>

No comments:

Post a Comment

Followers