title: window.focus(), self.focus() not working in firefox
body: <p>Hi all i am developing a chat application ... i have multiple chat windows ... i want to know which windw contain new message ... i have the following code ..</p>
  
  <pre><code>function getCount()
  {
      $.ajax({
         type: "POST",
         url: baseUrl + '/Chat/count',
         data: "chat_id=" + document.ajax.chat_id.value,
         success: function(msg){
                  if(msg == 'new1') {
                      self.focus();
                                              //window.focus();
  
                  }
              }
      });
  }
  </code></pre>
  
  <p>If an operator attending both chat....</p>
  
  <p>for example the url is like 
  <a href="http://localhost/nisanth/admin/Chat/index/chatId/15" rel="noreferrer">http://localhost/nisanth/admin/Chat/index/chatId/15</a>
  <a href="http://localhost/nisanth/admin/Chat/index/chatId/16" rel="noreferrer">http://localhost/nisanth/admin/Chat/index/chatId/16</a></p>
  
  <p><a href="http://localhost/nisanth/user/Chat/index/chatId/15" rel="noreferrer">http://localhost/nisanth/user/Chat/index/chatId/15</a>
  <a href="http://localhost/nisanth/user/Chat/index/chatId/16" rel="noreferrer">http://localhost/nisanth/user/Chat/index/chatId/16</a></p>
  
  <p>if the <code>user 16</code> enter a message i need focus </p>
  
  <pre><code>http://localhost/nisanth/admin/Chat/index/chatId/16
  </code></pre>
  
  <p>This code is work fine with IE but not in firefox...please give me a solution... the above code is in the same html</p>