Employing the 'NOSCRIPT' Tag
<HTML> <HEAD> <TITLE>Some Document</TITLE> <SCRIPT LANGUAGE="JavaScript"> // alert("hi"); </SCRIPT> <NOSCRIPT> <B>Your browser has JavaScript turned off.</B><BR> <HR> </NOSCRIPT> </HEAD> <BODY> <H2>The body of your document.</H2> </BODY> </HTML>