Hi, I'm trying find a solution to display a contextual helptext when mouse
enters a form element (IE6 and Firefox 1.0)
The input tag :
<input name="message.t itle" helptext="Help message" value="" size=80>
The code :
var e = document.mainfo rm.elements;
for(i=0;i<e.len gth;i++)
{
var formObject = e[i];
if(formObject.h elptext != null)
{
formObject.onmo useover=mouseOv erHandler;
formObject.onmo useout=mouseOut Handler;
}
}
The above code works under IE6 but not with Firefox, nothing happen because
formObject.help text is undefined.
What's wrong ? Does Firefox not support custom properties ?
Thanks
enters a form element (IE6 and Firefox 1.0)
The input tag :
<input name="message.t itle" helptext="Help message" value="" size=80>
The code :
var e = document.mainfo rm.elements;
for(i=0;i<e.len gth;i++)
{
var formObject = e[i];
if(formObject.h elptext != null)
{
formObject.onmo useover=mouseOv erHandler;
formObject.onmo useout=mouseOut Handler;
}
}
The above code works under IE6 but not with Firefox, nothing happen because
formObject.help text is undefined.
What's wrong ? Does Firefox not support custom properties ?
Thanks
Comment