H Havic Ploccin Oct 2, 2003 #1 I need an automatic way of discovering (from an IE page, via script) if the ..NET framework is installed on a client machine. How do I do this?
I need an automatic way of discovering (from an IE page, via script) if the ..NET framework is installed on a client machine. How do I do this?
G Gabriele G. Ponti Oct 3, 2003 #2 Havic, You can use the userAgent property. For example: <script language="JavaScript"> if( isDotNetInstalled() ) { document.write( ".NET installed" ); } else { document.write( ".NET not installed" ); } function isDotNetInstalled() { var ua = window.navigator.userAgent; return ( ua.indexOf( ".NET CLR" ) > 0 ); } </script> For more information please see the following document: userAgent Property http://msdn.microsoft.com/library/d...thor/dhtml/reference/properties/useragent.asp Regards, Gabriele
Havic, You can use the userAgent property. For example: <script language="JavaScript"> if( isDotNetInstalled() ) { document.write( ".NET installed" ); } else { document.write( ".NET not installed" ); } function isDotNetInstalled() { var ua = window.navigator.userAgent; return ( ua.indexOf( ".NET CLR" ) > 0 ); } </script> For more information please see the following document: userAgent Property http://msdn.microsoft.com/library/d...thor/dhtml/reference/properties/useragent.asp Regards, Gabriele