I want to determine whether the browser of the client machines is Opera using JavaScript, how to do that?
The navigator object contains all the info you need. This should do:
navigator
navigator.userAgent.indexOf("Opera");