Hi there, I am working on passing a variable between 2 pages. The idea is to have you click on a normal anchor text link and pass over a querystring, from this querystring you'd create a variable and read it on the other page it's linked to.
I did a bit of digging and found the following code, which did not really do anything for me:
HTML Code
JavaScript Code in HeaderCode:<a href="index_1.htm?color=black" class="black">Black</a>
Javascript code in HTMLCode:<script> // Adapted from examples on the Querystring homepage. var qs = new Querystring(); var v1 = qs.get("color"); </script>
I am going to still continue with my digging and see what I can come up with.Code:<script type="text/javascript">document.write(v1);</script>




Reply With Quote



Bookmarks