Forum : java script
Brief description  about Online courses   join in Online courses
View ganesh  pradhan 's Profile

java script

Hi Sir
I try my level best to give below Answer the quistion just you checked it out and let me know where i have did wrong and what is the exect code of below quistion

3.Get the browser information and accordingly change the background color of browser.

<INPUT TYPE = Button VALUE = "GOD" Onclick ="alert('navigator.userAgent'),document.bgColor='Green'">
Asked by ganesh pradhan | Aug 24, 2010 |  Reply now
Replies (2)
View ganesh pradhan 's Profile
Thank you sir
Aug 25, 2010
View teacher siliconindia 's Profile
Hi Ganesh,

Check this,

<input type="button" value="GOD" Onclick ="javascript: alert(navigator.userAgent); document.bgColor='Green';">
Aug 25, 2010