Yeah, in my mind you were asking about grids/lists. I wasn't really aware of things like 'end_of_data' in an edit object and would probably make different choices.

Anyway, just google some javascript to do it for you and add it to clientonfocus, depending on why you want it.