"Shabam" <ch*****@yomama-nospam.com> wrote in message
news:vd********************@adelphia.com...
I need to have a static html page basically pass all GET arguments from
one page to another. For example, I'm on page A. It has "x=12&y=45".
There's a link on page A that goes to page B. Page B has a link to page C.
Basically what page B needs to do is pass the "x=12&y=45" to page C. It
doesn't need to do anything other than pass it.
How can I do this?
Is this what you're looking for?
JavaScript must be enabled for this to work.
http://localhost/page1.htm?x=12&y=45
<html>
<head>
<title>page1.htm</title>
<script type="text/javascript">
function next() {
location.href = "page2.htm" + location.search;
}
</script>
</head>
<body>
<a href="javascript
:next()">page2</a>
</body>
</html>
<html>
<head>
<title>page2.htm</title>
<script type="text/javascript">
function next() {
location.href = "page3.htm" + location.search;
}
</script>
</head>
<body>
<a href="javascript
:next()">page3</a>
</body>
</html>
<html>
<head>
<title>page3.htm</title>
<script type="text/javascript">
alert(location.search);
</script>
</head>
<body>
</body>
</html>