localhost on javascript

window.location.hostname

Reference http://stackoverflow.com/questions/6042007/how-to-get-the-host-url-using-javascript-from-the-current-page

Related posts:

This entry was posted in knowledge. Bookmark the permalink.