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 ViewState Property?

2290


How to block double clicks

1622


How to encode and decode URL strings?

1800


code to keep a page Out of the browser history

1659


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

1711






sample code to auto focusing the first field in a form

2033


how to create a Custom Scrollbar

2054


program to show a progress bar

2126


code to get the coordinates of a Click Event

1741


code to images to rollover

1860


program to bring a window to the front

1570


how to Auto Scroll the page

1633


how to create an anonymous function

1734


how to pass data between pages using Frames

2149


how to create a Draggable element

1970