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
create Drop-Down Navigation Menus
code to get the coordinates of a Click Event
code to set the main window's size
program to show a progress bar
Code to Block submission of form by pressing Enter Key
write a code that user can choose/alter Body Text Size
how to create Expandable and Collapsible Menus
program to bring a window to the front
how to get the User's Time of Day
how to copy form data between different pages
maximizing the main window
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
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: