<Script type = "text/javascript">
Var browser = navigator. appName
Var B _version = navigator. appVersion
Var version = B _version.split (";");
Var trim_Version = version [1]. replace (/[]/g ,"");
If (browser = "Microsoft Internet Explorer" & trim_Version = "MSIE7.0 ")
{
Alert ("Internet Explorer 7.0 ");
}
Else if (browser = "Microsoft Internet Explorer" & trim_Version = "MSIE6.0 ")
{
Alert ("Internet Explorer 6.0 ");
}
</Script>
The following is a classic example
<Div id = "sitetips" style = "display: block">
<Table align = "center" cellpadding = "0" cellspacing = "0" style = "height: 30px;">
<Tr>
<Td align = "center" valign = "middle">
<Script language = "javascript">
Document. write ("<span> you are using Internet Explorer 6, and the display effect on this site may be different. We recommend that you upgrade to <a href = 'HTTP: // www.microsoft.com/china/windows/internet-assumer/'target = '_ blank'> Internet Explorer 8 </a> </span> ");
</Script>
</Td>
</Tr>
</Table>
</Div>
<Script> if (Fai. isIE7 () | Fai. isIE6 () {document. getElementById ('sitetids '). style. display = 'block';} </script>