Hi vishwanath,
just display all browser info through alert box using navigator object and simultaneously change the background color.
eg: use one event like onclick, inside write navigator.userAgent; document.bgColor='red';
onclick="navigator.userAgent; document.bgColor='red';"
Jul 14, 2010