index.php
ADDITIONAL SOLUTION Had same issue where focus() didn't seem to work no matter what I tried.
Eventually turned out that what was needed was scrolling to the correct position: