Hi all
I m facing a proble with a proble,
can any one please tell me code to show hostname?
thanks

San-biegwenja,

To access the hostname of the current page, location.hostname .

You can similarly access the hostname of other urls, eg the href of a hyperlink, document.getElementById("mylink").href.hostname .

This utility may be of interest:
http://www.daniweb.com/web-development/javascript-dhtml-ajax/code/217388

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.