/ Published in: JavaScript
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