Return to Snippet

Revision: 41246
at February 14, 2011 22:58 by dcastella


Initial Code
<script> 
function GetElementByText(tagName, title)
    {
        var a = document.getElementsByTagName(tagName);
        for (var j=0; j < a.length; j++)
        {
                //alert(a[j].id);
                if (a[j].id.indexOf(title)>0)
                {
                    //alert('Entra');
                    return a[j];
                }
        }
        return null;
    }
function hideWinExp()
{
 var n = GetElementByText("ie:menuitem","OfflineButton");
            if (n)
            {
                //alert('Entra 2');
                n.disabled = true;
            }
}
_spBodyOnLoadFunctionNames.push("hideWinExp");
</script>

Initial URL

                                

Initial Description

                                

Initial Title
SharePoint - Ocultar sincronización con Outlook

Initial Tags
sharepoint

Initial Language
JavaScript