write a program to detect the user's browser ?

Answer Posted / dhivya barathi

function getBrowser() {
if (Navigator.AppAgent.IndexOf("Chrome")! = -1) {
document.write("Chrome Browser");
}
getBrowser();

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a Menu that can be activated while clicking on Right Mouse button

1715


create Drop-Down Navigation Menus

1708


code to Hide and Show form controls

1812


advance the focus to next consecutive fields when Enter Key is pressed

1802


code to set the main window's size

1711






code to positioning of window in certain dimensions

1674


how to transform XML Data into HTML

1904


write a code that user can choose/alter Body Text Size

1614


I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example: