/ Published in: JavaScript
![](/img/icon_sav.png?v3)
Works in SP2013 (and I believe 2010). Provides site collection URL without trailing "/"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
_spPageContextInfo.webAbsoluteUrl
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
_spPageContextInfo.webAbsoluteUrl