javascript -How to Get current URL with jQuery?
Hi,
Use window.location.href
, No jQuery needed.
1 Like
While it may not be a good idea, the pure jQuery way to get the current URL is:
var currentUrl = $(location).attr("href");
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.