Forum : i am not getting this assignment,plz explain me what to do.
Brief description  about Online courses   join in Online courses
View Sweety  Agarwal 's Profile

i am not getting this assignment,plz explain me what to do.

Write a JavaScript code,
- to detect browser using conditional statements.
- to use confirm message box with conditional statements.
- to display grade for a student according to marks:
90 to 100 - A grade,
80 to 90 - B Grade,
70 to 80 - C grade,
60 to 70 - D grade,
50 to 60 - F grade,
And below 50 - G grade.
- to display different message for different age group.

what to detect browser?? plz do let me know what to do here in this assignment?
Asked by Sweety Agarwal | Oct 13, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Sweety,

Detect browser in the sense, which browser u are working currently, Check the following navigator objects,

Property Description

appCodeName Returns the code name of the browser
appName Returns the name of the browser
appVersion Returns the version information of the browser
cookieEnabled Determines whether cookies are enabled in the browser
platform Returns for which platform the browser is compiled
userAgent Returns the user-agent header sent by the browser to the server

Regards,
Vishwanath
Oct 18, 2010