Javascript: Programmatically scroll non-popup SELECT element to bottom in Chrome
I have a SELECT element in a web page, and I'd like it to load scrolled to the bottom. In most browsers, I can do this: myselect.scrollTop = myselect.scrollHeight; Although scrollHeight is out of bounds, the browsers figure that out and limit it appropriately. Except in Google Chrome. I could file a bug report, but that doesn't help me with my immediate problem. So I tried this: myselect.scrollTop = myselect.scrollHeight - myselect.clientHeight; But that subtracted too much -- there were items below the bottom of the element. I also tried subtracting offsetHeight , but that was slightly worse.