Basically, I have a JSP page. I want to know if the javascript is disabled or enabled. Based on that I need o display the content.

If JS is enabled I need to display click to update hyperlink which will shown the firstname, lastname when clicked whereas if JS is disabled I need to display the firstname and lastname text boxes by default

Now my question is how can I use this JS variable in my JSP page.

I tried this code
1.String jsEnabled ="<script>document.write(jsVariable)</script>";

but its not working for me.

Any suggestion...Thanks

try using a noscript tag

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.