I need to pass the userid variable from one page to another page through anchor tag <a>. This user id will be display in every pages after sign in. Here I attached code for that
Code:
<td colspan="2" align="right"><div align="center">User Id</div></td>
<td><input class="textbox" type="text" id="userid" ><a href="access.jsp?userid='+userid'"
"></a></td></tr>
Javascript:
var userid =document.getElementBy("userid");
You’d need to manipulate the
hrefattribute with javascript in order to insert the value. You could achieve this, for instance, by using anonclickevent handler: