Mar 26, 2009 #1 Shift838 IS-IT--Management Joined Jan 27, 2003 Messages 987 Location US I need to know how to run a java script and need entire code to get a server name display on the screen.
I need to know how to run a java script and need entire code to get a server name display on the screen.
Mar 26, 2009 #2 Foamcow Programmer Joined Nov 14, 2002 Messages 6,092 Location GB I need a new roof on my house. Do you know anyone that would be willing to do it for me? Since Javascript runs on the client browser I am doubtful you could get it to query a server for it's name. However you may be able to solve the problem with a little lateral thinking. Tek-Tips Forums is Member Supported. Click Here to donate <honk>*:O)</honk> Tyres: Mine's a pint of the black stuff. Mike: You can't drink a pint of Bovril. Upvote 0 Downvote
I need a new roof on my house. Do you know anyone that would be willing to do it for me? Since Javascript runs on the client browser I am doubtful you could get it to query a server for it's name. However you may be able to solve the problem with a little lateral thinking. Tek-Tips Forums is Member Supported. Click Here to donate <honk>*:O)</honk> Tyres: Mine's a pint of the black stuff. Mike: You can't drink a pint of Bovril.
Mar 26, 2009 #3 Foamcow Programmer Joined Nov 14, 2002 Messages 6,092 Location GB You can get the domain name that the page is from but I don't think that's what your after is it? Code: script type="text/javaScript"> window.onload=function(){ alert(top.location.host); } </script> Tek-Tips Forums is Member Supported. Click Here to donate <honk>*:O)</honk> Tyres: Mine's a pint of the black stuff. Mike: You can't drink a pint of Bovril. Upvote 0 Downvote
You can get the domain name that the page is from but I don't think that's what your after is it? Code: script type="text/javaScript"> window.onload=function(){ alert(top.location.host); } </script> Tek-Tips Forums is Member Supported. Click Here to donate <honk>*:O)</honk> Tyres: Mine's a pint of the black stuff. Mike: You can't drink a pint of Bovril.