Fork me on GitHub
instano.js allows you to instantly detect if JavaScript is disabled after the page is loaded. It modifies the standard <noscript> tags so that the messages inside can be shown immediately whenever JavaScript is disabled. You can also apply callback functions when JavaScript is reenabled.
Display INSTANT noscript message
noscript
<noscript>You have to load the page with JavaScript disabled to see this message.</noscript>
instano.js
<noscript>You can see this message as soon as JavaScript is disabled.</noscript>
<script src="instano.js"></script>
<script>
    instano();
</script>
Apply REENABLED callback function
instano.js
instano({
    reenabledCallback:function(){
        alert("JavaScript is reenabled.");
    }
});
DOWNLOAD

instano.js is currently in Alpha stage. Download the source code on GitHub (development use only).

COMPATIBILITY

instano.js uses plain JavaScript and @keyframes CSS animation to disaplay instant messages. There is a fallback to standard <noscript> tags for non-supporting browsers. Since users cannot disable JavaScript in Internet Explorer without a reload, there is no need for this script in IE.

(Yes)
5.0+
12+
4.0+
Not Applicable
ORIGIN

This code started as an answer to the Stack Overflow question "How can a site instantly detect that javascript has been disabled?"

AUTHOR

Antony Lau and Zbyszek Tenerowicz. Email for general inquiries.

LICENSE

instano.js is freely distributable under the terms of the MIT license.