HOST NAME in javascript

by Mohan 2014-03-01 17:03:03

<h1>
Hostname in Javascript
</h1>

Simple javascript function to get hostname



<script type="text/javascript">
alert(document.location.hostname);
</script>

1035
like
0
dislike
0
mail
flag

You must LOGIN to add comments