I have develeped an application using ASP<BR>I have 6 frames on the asp page. Two frames say A and B have fwd and back buttons each.Jpeg img is used for buttons<BR>On clckcing fwd in frame A all other frames get reloaded with new values of records.. for back click the records go backwards.Similarly for buttons in frame B. <BR>I would like that on reload of the frames,the focus (cursor) to be on the button that was clicked ie. if fwd button in frame A was clicked then next time focus must be on fwd button of frame A. <BR>In case back button on frame B was clicked then focus shd be on this button and so on..<BR>How to achieve this using javascript? I call a function on click to reload the frames