javascript comment connaître la fin du parchemin

  if (myDiv.offsetHeight + myDiv.scrollTop >= myDiv.scrollHeight) {
    // Do something
  }
Lioruby