Connecting Tech Pros Worldwide Help | Site Map

How to determine if Javascript is turned off.

Newbie
 
Join Date: Jul 2009
Posts: 9
#1: Aug 26 '09
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's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Aug 27 '09

re: How to determine if Javascript is turned off.


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

Tags
.net, javascript, vb.net