javascript - JS code for SharePoint "open in explorer" function -


i have attempted use following code add link use "open in explorer" option in sharepoint 2013

<script type="text/javascript">   var currentsiteurl = document.location.pathname.split("/").slice(1,2).tostring(); var explorerviewurl = "\u002f"+currentsiteurl+"\u002fshared\u0020documents"; var linktext = "open shared documents in explorer view" </script>  <a onclick="navigatehttpfolder(explorerviewurl, 'blank');" href="#"> <img style="height: 24px; width: 24px; border: 0px; padding-right: 5px;" alt="open in explorer" src="/style library/client/folder_yellow_explorer.png" /> <script type="text/javascript">document.write(linktext);</script ></a> 

however, i'm @ loss elements must changed in order code work specific document library or folder. can please give me clue elements must changed? thanks,.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -