Click here to Skip to main content
15,117,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any way to display a alert message if user has disabled javascript on his browser. It should have close button like in youtube website.
Posted

1 solution

You can not show the alert box but you can do something similar by changing the style when JavaScript is not present. Something like this:

XML
<noscript>
    <style type="text/css">
        #body {display:none;}
        #alert {display:inline;}
    </style>
</noscript>
   
Comments
Pankaj Mahor 25-Jan-14 1:32am
   
but how to place a close button?

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