1. You can show some code. 2.1. Do you mean in the url? <a href="page.jsp?key=value&anotherkey=anothervalue"> 2.2. Yes. I don't know what technology you are using, but from the file type in the href property of the link, I assume that you are using JSP. I don't know how you write out values to the page in JSP, but I assume that it's similar to ASP: <a href="threads.jsp" onwhatever="functionName(<%=myvar%>);"> function functionName(var) { session.setAttribute("Myvar", var); } Substitute "onwhatever" with the event you are using. If the value is a string, however, you would surround it with apostrophes, the value should be html encoded, "\" should be replaced by "\\" and "'" should be replaced by "\'". --- b { font-weight: normal; }