Re: Putting location into a variable

by Thomas Rumley <trumley(at)softhome.net>

 Date:  Tue, 30 Jul 2002 15:31:52 -0400
 To:  hwg-basics(at)hwg.org
 In-Reply-To:  localhost
  todo: View Thread, Original
Well I definitly didn't get that one right.

var url = document.location;


document.write("<BR>The URL of this page is <B>" +url+ "</B>.")

is correct.

Thomas

At 02:16 PM 7/30/2002, you wrote:
>How about assigning the location value to a variable.
>
>var tillages = window.document.location.value;
>
>or something like that.
>
>
>Thomas
>     mailto:trumley(at)softhome.net
>     http://aboveboardlinks.com

Thomas
     mailto:trumley(at)softhome.net
     http://aboveboardlinks.com

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA