2

I am new to play framework. I want to add a timer to a page which starts as soon as the user opens the page, which displays how long that particular page has been open.

But I have no idea how to implement the timer. Can anybody please tell how to do it.

1
  • 1
    You should be able to accomplish this simply with Javascript without any server-side stuff: see this question. Commented Oct 5, 2013 at 20:48

1 Answer 1

1

That's definitelly job for JavaScript not for framework.

There are available ready to use libraries, which you can use for that task, ie: Moment.js or TimeAgo

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.