I’m trying to show an alert when a user using IE6 uses my site. I’m thinking something like this will work:
<!--[if IE 6]>
<script language="Javascript">
alert ("The year 2004 just called - they want their browser back!")
</script>
<![endif]-->
I’d test this but I don’t have a Windows box I can use ATM. Is this the correct way to do it?
Yes, that works:
Of course, you could use something like this, which is a bit more friendly.