Get current url using JavaScript jQuery


In my previous article I have explained about how to run google apps script function periodically javascript. In this article I am going to explain about How to get current url in jquery,Javascript and C#.Net.
Get current url using jQuery

var currenturl = $(location).attr(‘href’);

In javascript

var currenturl = window.location.href;


string url = HttpContext.Current.Request.Url.AbsoluteUri;

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!