And some handler is to be generating top*.html and bottom*.html files, that can be long, scrollable (tables from the database)...
And the handler should intercept clicks in all 4 frames.
Is it possible ?
If yes - how handler should be set up ?
Yes since it is a web app, all HTML features should be available. Try as much as possible to avoid Es5+ features in javascript if you are targeting Android 4 (or less) but from 5, you should be able to use most especially with a polyfill library offline like babelJS.
As for intercepting the events, if it is on Android you intend on wrapping it in, use WebViewExtras2 and add a Chrome client(essential).
Then you can use the callSub part to route events.