i need to get the domain name from the url in javascript.
for eg if the url is "http://bytes.com/forum/newthread.php", i need to get bytes.com alone.
any quick help will be appreciated.
for eg if the url is "http://bytes.com/forum/newthread.php", i need to get bytes.com alone.
any quick help will be appreciated.
Comment