Click here to Skip to main content
15,885,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

In my web page login screen ,i am using <noscript> tagfor, if javascript disabled in browser,

but i showing one div there that is your browser does'nt support javascript so enabled it . like,

XML
<noscript>
<div class="grid-100 tablet-grid-100 alert">
  Your browser does not support JavaScript! Please update your
            browser or turn on JavaScript.</div>
            </noscript>



but i should restrict the textbox controls as disabled orelse i have to show my message div instead of main div.

give me some sample please
Thanks in advance,
Vels Ananth
Posted
Comments
Kornfeld Eliyahu Peter 4-Dec-14 3:05am    
Not clear. <noscript> tag does not replace other content but shows when no script engine presented in the browser - additionally to other content...
avelsamy 4-Dec-14 4:00am    
i got ur point .... what i am asking means, what are all we can do in noscript tag
Kornfeld Eliyahu Peter 4-Dec-14 4:02am    
Read here - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript

1 solution

You should build the application in such a way that it should work without JavaScript. Ideally, JavaScript should be used for validations.

But you should validate the data both at client and server side, so that you can warn users of any issue. Don't hide anything from user just because JavaScript is disabled, but try to be smart on either case.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900