Return to Snippet

Revision: 2813
at April 18, 2007 22:24 by vanne


Initial Code
var domain = "http://" + window.location.toString().split("//")[1].split("/")[0] + "/";

Initial URL


Initial Description


Initial Title
Retrieve domain name in javascript

Initial Tags
javascript

Initial Language
Other