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 You can use just a Check it with Javascript disabled.
if (javascript == off) / / javascript enabled / / else else / button * /}
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;
Comments
Post a Comment