Tuesday 27 December 2011

How to get current URL / Request.Url in Javascript?

Definition: The href property returns the entire URL of the current page.

Code:
      function GetURL()
      {
        var Url = document.location.href;
       alert(Url);
      }

No comments:

Post a Comment