}, _('Scroll to tail', 'scroll to bottom (the tail) of the log file')
);
scrollDownButton.addEventListener('click', function() {
- window.scrollTo(0, document.body.scrollHeight);
+ scrollUpButton.focus();
});
var scrollUpButton = E('button', {
}, _('Scroll to head', 'scroll to top (the head) of the log file')
);
scrollUpButton.addEventListener('click', function() {
- window.scrollTo(0, 0);
+ scrollDownButton.focus();
});
return E([], [