browser detection jquery?
<p>i am using jquery browser detection function to alert a different value on different browser but seem it is conflict with safari and chrome. they both are alerting same value.
this function is working fine in all browser but the problem with safari and chrome only. thanks in advance.</p>

<pre><code>&lt;script type="text/javascript"&gt;

$(function (){

    var m= $.browser;


    if(m.webkit) {

        alert('chorme')

        }


    else if(m.safari) {

        alert('safari')

        }

    else {alert('bye bye')}


    })



&lt;/script&gt;
</code></pre>
