hwg-techniques archives | Aug 2000 | new search | results | previous | next |
Re: query strings and javascriptby KeithWBell(at)aol.com |
|
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