I need to get the host name from the following URL. I want to do this using Javascript.
http://www.webmail.com/pages/home.aspx
I want to retrieve "http://www.webmail.com" from the above URL.How can I achieve this using JavaScript?
Thanks in advance..