How TO GET THE CURRENT SITE in CEWP
<script src="//JSFiles/jquery-1.11.1.min.js"></script>
<script src="//JSFiles/jquery.SPServices-2014.01.min.js"></script>
<script type="text/javascript">
var thisSite = $().SPServices.SPGetCurrentSite();
alert(thisSite);
document.write("The Current Site is " + thisSite);
</script>
<script src="//JSFiles/jquery-1.11.1.min.js"></script>
<script src="//JSFiles/jquery.SPServices-2014.01.min.js"></script>
<script type="text/javascript">
var thisSite = $().SPServices.SPGetCurrentSite();
alert(thisSite);
document.write("The Current Site is " + thisSite);
</script>
No comments:
Post a Comment