When I try to search for this online I get results for people trying to programmatically scroll a webpage. That's not my mission. I have a website that I browse to and then try to use the keyboard up/down or page up/down arrows to scroll but it won't until I click in the main content pane (div.main-content
) on the right.
My question is, what do I write in the JavaScript at the bottom of the page (or perhaps at the end of the jQuery document load event) to cause it to make that the scrolling div
? I tried $('.main-content').focus()
, but that didn't seem to work.