got this weird error (save that there's no actual JS error going on), whereby my while loop initialises two arrays with values. when alerted outside of the loop, nuffin happens.
can anyone point out to me what might actually be happening, thanks.
the first alert shows data, but the next one doesn't. in fact, the 2nd alert doesn't even get called?? what's going on with that?
var oDiv, iKey, i=0;
while (iKey = (oDiv = document.getElementsByTagName("div").item(i++)).className.lastIndexOf("_"))
if (iKey != -1)
if (oDiv.className.substring(0, iKey).toLowerCase() == "tab")
alert("details:\n---------\n\n" +aTabIds+ "\n" + aClasses) ;
alert("tabs ids: " + aTabIds) ;
return aTabIds, aClasses;