Back button and click javascript