<!--[if IE 6]><script>alert("IE 6!");</script><![endif]-->
if (navigator.appVersion.search("MSIE 6") !=-1) alert("IE 6!");