asp.net mvc 3 - How can I hide a button if JavaScript is disabled? -


I have a website that allows users to create new content and I use javascript to check spam As a way. If the user is javascript turned off, then I post search button

     

Is there any statement or nodscript in it that I can use I have seen some examples online but they all redirect users, like trying to do something

  if (javascript == off) / / javascript enabled / / else else / button * /}    

You can use just a noscript tag, in your head that only javascript is disabled It loads.

HTML
  & lt; Noscript & gt; & Lt; Style type = "text / css" & gt; #creatingpost {display: none; #noJsBanner {display: block; } & Lt; / Style & gt; & Lt; / noscript & gt;   

Check it with Javascript disabled.

Comments

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -