You need some sort of link or some way to use the variable as a query, a simple link could be:
HTML Code:
<a id="passer" href="some.jsp">Whatever</a>
Then in your javascript, once you have assigned the value to the variable, let's say the variable is named lookup and the value (doesn't really matter too much) this time is 7. Then you can do:
Code:
document.getElementById('passer').href='some.jsp?lookup='+escape(lookup);
That is a very basic way. Depending upon the rest of your code and markup, the basic concept (creating a URL with the query string appended to it, and giving the user some way of navigating to the URL) may be applied in many different ways.
Bookmarks