Double click action

Does anyone know how or have a resource i can view for a double click button? I want to allow a user to click once on the button to view details about a product, then click on it again to go back to the beginning. Thanks for any and all help!