Friday, March 2, 2012

Not to allow Contributor users to access webpart menu of the webparts

Put this JavaScript just before “</BODY>”  on Master Page .
<script language="JavaScript">
    var doc = document.getElementsByTagName('ie:menuitem');
    for (var i = 0; i < doc.length; i++) 
        itm = doc[i];
        if ('MSOMenu') != null) 
            itm.hidden = true; 

For More Option:

No comments:

Post a Comment

How to launch a document by clicking a link to the file?

Word: <a href='ms-word:ofe|u|path/to/web/word/document.docx'>Link to document</a> Excel: <a href='ms-excel:o...