how to get domain name from url using javascript
by Ramya[ Edit ] 2010-01-08 13:32:57
Get Domain Name From URL Using Javascript:
To get a domain name from url, use "document.domain".
O/P:
Just use
"document.domain" to get domain name from url in javascript.