0

Possible Duplicate:
How to detect if JavaScript is disabled?

My question is how to detect in the server side web application that there is no javascript enabled? I know the tag but I want to do it in servlet or with pure java. I do not want to use noscript tag because I have to redirect the page if there is not javascript enalbed.

Thanks in advance.

Community
  • 1
  • 1
Jordan Borisov
  • 1,603
  • 6
  • 34
  • 69

1 Answers1

0

OK I found a way to do it. Make two div tags. The first one will contain the noscript text and the second one will contain the main content of the page. With javascript you just have to hide the one div and to show the other. If there is no javascript the div with the text won't dissapear and the other won't show.

Jordan Borisov
  • 1,603
  • 6
  • 34
  • 69