i am not getting the alert blackberry or other
<pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;script type="text/javascript"&gt;
            function getcss(cssfile)
            {
                alert("hi");
                alert(navigator.appName);
            }
            if(navigator.appName("Blackberry"))
            {
                alert("blackberry");
            }
            else
            {
            alert("other");
            }
        &lt;/script&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
        &lt;title&gt;Insert title here&lt;/title&gt;
    &lt;/head&gt;

    &lt;body onload="getcss()"&gt;
        &lt;div id="demo"&gt;
            Hai Css
        &lt;/div&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Why I am not getting the alert blackberry or other? I have more doubt in that code so I want that clarification for this.</p>
