sharepoint: grabbing top-level Style-Library url from any page using Javascript

/ Published in: JavaScript
Save to your folder(s)

Use when you don't know what the top-level collection will be called.

Copy this code and paste it in your HTML
  1. var vidpath = String(window.location).split('/sites/')[0] + "/" + String(window.location).split('/sites/')[1].split('/')[0] + "/" + "Style%20Library/Lilly/images/";

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.