Come back to current frame again

I need help for the following:
Now I am in current frame, if I want to go to other frame then come back again to the current frame.
For example, in frame 5, there is a button (btn_A) to press to go to frame 10, then from frame 10 return automatically to frame 5 again.
How do I attach to the button (btn_A) ?