Dovrebbe andare
codice:
var isEigth=navigator.appVersion.indexOf("MSIE 8")>-1;