How to get current URL?

 Posted by vishalneeraj-24503 on 12/19/2013 | Category: JavaScript Interview questions | Views: 2658 | Points: 40

With the help of location.href property we can get current URL.

For Example:-

function get_url()

It will show the page URL.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response