How to get Host Url in javascript or Jquery

Monday, August 2, 2010

Sometime, you will be in need of only host part of URL, like

if you url is

then if you wish to have only "" out of complete url, then you can use this code to get host url
in javascript or jquery.


Hope this post will help you,
if yes please put comment below of this page,
Rajesh Singh,
Senior Asp.Net Developer

e-Procurement Technologies Ltd (India)

1 comment :

Anonymous said...

usefull link : - to convert any doc type to any formate. - you can find nice icon here