Popular search using HTML and Javascript

How can I show popular searches using HTML and Javascript.