Hide form if javascript disabled

Posted by Kero on Stack Overflow See other posts from Stack Overflow or by Kero
Published on 2013-10-20T13:51:34Z Indexed on 2013/10/20 15:54 UTC
Read the original article Hit count: 111

Filed under:
|
|

I need to check on disabling JavaScript if the user disabled JavaScript from browser or firewall or any other place he will never show the form. I have lots of search and solutions, but unfortunately didn't got the right one. - Using style with no-script tag: This one could be broke with removing style...

<noscript>
<style type="text/css">
.HideClass {
display:none;
}
</style>
</noscript>


The past code will work just fine but there is lots of problems in no-script tag as here

Beside that i don't want to redirect user with no-script tag too...Beside that i can quickly stop loading the page to broke this meta or disable Meta tag from IE:
<meta http-equiv="refresh" content="0; URL=Frm_JavaScriptDisable.aspx" />

Another way to redirect user with JavaScript but this will work let's say for 99% of users and this one isn't lovely way and will slow down the website...
window.location="http://www.location.com/page.aspx";

Is there is any other ideas or suggestions to secure working with JavaScript...and prevent user from entering the website or see my form except when JavaScript enabled...

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET