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

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -