How to get current entire site url in sharepoint 2013

get current site url in sharepoint
Inside the java script add this code inside the App.js

 var siteUrl = _spPageContextInfo.webAbsoluteUrl;

    alert('site Url' + siteUrl);


Related Posts:

  • Variable and Expressions Variables What is a variable anyway? You can consider a variable as a holder for a certain value. There are two kinds of variables: Simple variabl… Read More
  • String in Java Handling character strings in Java is supported through two final classes: String and StringBuffer. The String class implements immutable character … Read More
  • 20 Great Google Secrets  Do you just plug in a keyword or two and hope for the best? That may be the quickest way to search, but with more than 3 billion pages in G… Read More
  • Simple trick to allow you to access the entire internet If you have a phone thats with the provider 3 theres a simple trick to allow you to access the entire internet on its browser without having to go th… Read More
  • History of Java History of Java The java programming language is becoming more and more popular each day. It is the language without which one cannot even hope t… Read More