how to get current URL in jQuery/JavaScript?

To get the path, you can use:
var pathname = window.location.pathname; // Returns path only
var url      = window.location.href;     // Returns full URL

Comments

Popular posts from this blog

remove span elements from Contact form 7 but keeping inside elements

Elance HTML5 Test Answers