How to get current url Jquery vanilla Javascript

0

Overview: Get current web page URL in jQuery and javascript.

This is most common think while developing websites where we need to fetch page URL for performing further function i.e get pathname, hostname, query string etc.

Example:

My page URL is  http://localhost:2239/Default2.aspx?id=5&name=SatinderSingh

  


Get your Printable Copy

NO COMMENTS

LEAVE A REPLY