The following line is apparently written best in dot notation. I am trying to clean my JavaScript code to make it strict. What does it mean?
if (ie||ns6)
{
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : "";
}
I added some context to my line of code, in case this helps? I know nothing about DOM. I am not trying to support Internet Explorer 4, this is not my code and I wouldn't be able to write JavaScript myself. I am only trying to get it compliant and the JSLint tool says about this line:
Problem at line 17 character 43: ['dhtmltooltip'] is better written in dot notation.