-
Get Host name of the Website in JavaScript
Source code :
Download
var x = location.hostname; alert (x);
Output :
codecry.com
Algorithm :
Get the host name using
location.hostname
Print the result
Output :
Comments :
Random Picks
Writing a File in C++
Classes - Constructor in Python
Print stars like a Triangle in C++
While loop example in Python
Sorting the given array in Ascending order in C++
Encapsulation in C++
Sum of n numbers in GO
List in Python
Factorial of a number in GO
Merge Sort in PHP
Comments :