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