Why are you using framesets and frames? The are obsolete and removed from HTML5.
You should be using either modern CSS blocks, or at best, iframes.
One of the problems with frames (which continues with iframes) is that each frame is its own document with its own DOM. Treating it all like a single page for the purposes of event handling is not going to happen and you'll need lots of custom (and necessarily messy) code to tie things together.
What are you trying to accomplish with all the frames? You should be looking into more modern ways to accomplish it.