Re: query strings and javascript

by KeithWBell(at)aol.com

 Date:  Mon, 28 Aug 2000 16:21:52 EDT
 To:  klai(at)rs1winc.com,
hwg-techniques(at)hwg.org
  todo: View Thread, Original
In a message dated 28/08/00 20:11:07 GMT Daylight Time, klai(at)rs1winc.com 
writes:

> does anyone know how javascript handles query string passed variables?
>  ie- if you have a link --> <A HREF="somehref.html?variablename=value">
>  this link is passed into the next page, i want to be able to do a
>  document.write(variablename); and have the appropriate value output
>  
>  any ideas?</A>

You're looking for how to use the location.search object. A useful article 
"Passing Data Between Pages via URLs" by Danny Goodman is at (watch out - 
long URL may wrap):

http://developer.netscape.com/viewsource/goodman_url_pass/goodman_url_pass.htm
l

HTH
Keith Bell

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA