How do I get the website URL Solved

Well their are multiple ways through which we can get link of page we are on
some are
  1. we can use window.location.href to get the complete URL.
  2. And  window.location.pathname to get URL leaving the host
see example here get the website url 
through jquery we can access it using href attribute
$(location).attr('href'); 

No comments:

Post a Comment

USB Device not recognized

Their are many reasons for this error some are This issue can be caused if any of the following situations exist: The currently loaded U...