Tuesday, July 17, 2012

Display Current site url


$(document).ready(function() {
var thisSite = $().SPServices.SPGetCurrentSite();
alert ('Hi! Your site is : ' + thisSite );
});
Output: 'Hi! Your site is : http://192.168.0.190:9999/sites/Practice

No comments:

Post a Comment