1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
function alertOrNot() { if( getCookie("ieversion") == "") { var iever = getInternetExplorerVersion(); setCookie("ieversion", iever) if(iever<7) { alert("your ie version < 7"); } } } </script> <body onload="alertOrNot();">