I would like to skip the preview-window (red marked in my screenshot) within the context menu [(...)-Menu] of a document in a library and go straight into the menu (which is opened when clicking in the preview-window again on the (...). Therefore I would like to know a solution with JavaScript (which I can post into a Script Editor Web Part), cuz I don't have any access to SharePoint Designer 2013 and also not to Top-Level-Site.

enter image description here

Thanks in advance.

1 Answer 1


Try putting following script in Script Editor webpart on the page. Hope this might help you out.

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
    $(".ms-list-itemLink > a").each(function(){
        this.setAttribute("onclick","ShowECBMenuForTr(this.parentNode, event); return false;");

Note : I have used jQuery instead of pure javascript.

  • Thank you very much! It worked and you saved me much time :)
    – SteffPoint
    Commented May 20, 2016 at 10:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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