I\'m creating a Mobile Based web page & I\'m using web socket connection to handle a chat room. But I want the display turning on every time when user go to the web page
Since most mobile OSs require user interaction to stop the screen from going to sleep this is impossible from a website. You'll need to make a native app.