how to get domain name from url using javascript

by Ramya 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.

Tagged in:

1164
like
0
dislike
0
mail
flag

You must LOGIN to add comments