window.location.host
Posted: Mon Feb 05, 2007 1:52 pm
I was wandering if i can get the host name of a web address that i am going to
for example
Thanks
for example
Code: Select all
var=http://www.mysite.com/pages/thispage.php
newVar= window.location.host (var);
window.alert(newVar) // http://www.mysite.com/