PDA

View Full Version : how to display the name of textfield wenn clicked on it(in Netscape 4.x)?


medi
12-25-2002, 07:01 PM
for example,
i have two textfields in a form named "a" and "b", what i wont to do ist wenn clicking on it to call a function that displays a name of a textfield.

if i do following
function f(field){
alert(field.name);
}
and in body
<input ... onClick="f(this)">
on ie works but netscape 4.x does not react
if i use onFocus instead, it displays the msgbox all the time, again and again.
TIA medi

joeframbach
12-26-2002, 02:30 AM
why even bother writing for NS4.x?

merry christmas!