- <script language=javascript>
- function browserVersion()
- {
- tmp_MSIE = window.navigator.userAgent.indexOf("MSIE");
- if(tmp_MSIE && window.navigator.userAgent.indexOf("SV1") > tmp_MSIE)
- {
- //This browser is Internet Explorer with SP2.
- return true;
- }
- else
- {
- //This browser is not Internet Explorer with SP2.
- return false;
- }
- }
- var xpie_SP2 = browserVersion();
- if(xpie_SP2)
- {
- //SP2 true...
- }
- else
- {
- //SP2 false...
- }
- </script>