I use the following code to display the user name on the website.. like
"Welcome Kaushik"
<jsp:useBean id="adminUser" class="bss.BSSUserDetailsDo" scope="session"/>
<font size="4" color="brown" face="verdana">
<bean:message key="Bss.user.welcome"/> //comes from some property file abcd.property
<jsp:getProperty name="adminUser" property="firstName"/>
</font>
i want to access the user first name from my JS function.
i tried
var name = document.getElementById('firstName');
but not able to access! any idea..