/ Published in: Other
Expand |
Embed | Plain Text
var domain = "http://" + window.location.toString().split("//")[1].split("/")[0] + "/";
Comments
Subscribe to comments
You need to login to post a comment.

Or:
var domain = 'http://' + window.location.hostname + '/';
That's even better thanks!