Script to detect browser?

Is there any script to detect which web browser the user is currently using?