I have function to set size of list box in Mozilla like:
function autoExpandSELECTs() {
var sels;
var i=0, end = 0;
if (document.getElementsByTagName) {
sels = document.getElementsByTagName('select');
for (i, end = sels.length; i < end; i++) {
if (sels[i].multiple) {
sels[i].size = sels[i].options.length;
}
}
}
}
How to call the autoExpandSELECTs function in the window onload and define size of List box?