How to determine if Javascript is turned off.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • altaafhussein
    New Member
    • Jul 2009
    • 9

    How to determine if Javascript is turned off.

    Hi, I know this is a question asked very often. I am also aware that you can use the noscrip tag in html to display a message or even a different control if scripting is turned off. However I am writing a server control in VB.NET and I need to know code how to determine if javascript is turned off.

    My problem is I have a dropdown list with autopost back on. If javascript is turned off then i want to display a button near the dropdown list.

    I can't use <noScript> tag as it does not work in a form tag

    any help would be appretiated.

    Thanks in advance altaafhussein
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    do it the other way round. code the button in html and use javascript to remove it onload.

    Comment

    Working...