A
Anonymous
Guest
Hi,
I am searching one common code for all the browsers i.e. IE, FireFox, and Netscape
for example: we can refer any object by its id in javascript by 2 ways
1. document.all
2. document.getElementById
but these 2 are not working in all listed above browsers rather work browser specific, one works in firefox one works in netscape... etc.
so how can I refer any object by its id in javascript and it must work in all given browsers.
I want one line to refer object by its id and It should also work in 3 browsers.
I am searching one common code for all the browsers i.e. IE, FireFox, and Netscape
for example: we can refer any object by its id in javascript by 2 ways
1. document.all
2. document.getElementById
but these 2 are not working in all listed above browsers rather work browser specific, one works in firefox one works in netscape... etc.
so how can I refer any object by its id in javascript and it must work in all given browsers.
I want one line to refer object by its id and It should also work in 3 browsers.