write a program to detect the user's browser ?
Answer / dhivya barathi
function getBrowser() {
if (Navigator.AppAgent.IndexOf("Chrome")! = -1) {
document.write("Chrome Browser");
}
getBrowser();
| Is This Answer Correct ? | 0 Yes | 1 No |
Create a ViewState Property?
Reading which Non-Character Key was pressed
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: <SCRIPT LANGUAGE=javascript> function calSubmit_onclick() { var xyz=0; .......... .......... document.write("<lable>"+xyz+"</label>"); /*Is it possible*/ }
sample code to auto focusing the first field in a form
How to encode and decode URL strings?
maximizing the main window
Code to Block submission of form by pressing Enter Key
how to create Expandable and Collapsible Menus
How to block double clicks
how to pass data between pages using Frames
function to combine two or more arrays
code to Hide and Show form controls