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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

url

Status
Not open for further replies.

Andy6666uk

Programmer
Jul 11, 2001
17
GB
when a page loads how can I get the page's full url into a variable?

thanks
 
Here is the code

Code:
<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
<TITLE></TITLE>
</HEAD>
<script language=&quot;javascript&quot;>
function showurl()
{
	alert(window.location);
};
</script>
<BODY onload=&quot;showurl();&quot;>

</BODY>
</HTML>

Hope this helps ________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top