This is a migrated thread and some comments may be shown as answers.

Make javascript run each time same page is displayed

1 Answer 24 Views
Application
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Robin asked on 02 Aug 2012, 11:54 AM
How can i make my javascript code run every time the page (page1.html) is shown to the user? Just including the script or using $(document).ready only runs the script the first time the page is shown.

1 Answer, 1 is accepted

Sort by
0
Robin
Top achievements
Rank 1
answered on 02 Aug 2012, 03:53 PM
Finally figured it out. In case anyone else wonders, just use data-show="NameOfJSFunction" in the main div.
Tags
Application
Asked by
Robin
Top achievements
Rank 1
Answers by
Robin
Top achievements
Rank 1
Share this question
or