Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display URL in JSP 1

Status
Not open for further replies.
Code:
<div id="server">&nbsp;</div>
<script type="text/javascript">
document.getElementById("server").childNodes[0].nodeValue = "Server: " + location.host;
</script>

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Many thanks! Works Perfectly!

A star for ya!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top