TOC PREV NEXT INDEX

domref


window.GetAttention()


Flashes the application icon to get the user's attention.

Syntax

window.GetAttention()
 

Parameters

None.

Example

// from Chatzilla
 
function notifyAttention (source)
 
{
 
  if (typeof source != "object")
 
    source = client.viewsArray[source].source;
 

 
  if (client.currentObject != source)
 
  {
 
    var tb = getTabForObject (source, true);
 
    var vk = Number(tb.getAttribute("viewKey"));
 

 
    tb.setAttribute ("state", "attention");
 
    client.activityList[vk] = "!";
 
    updateTitle();
 
  }
 

 
  if (client.FLASH_WINDOW)
 
    window.GetAttention();
 
}
 

 

 

Notes

On windows and linux, the icon flashes in the system tray. On macintosh, the icon in the upper right corner of the desktop flashes.

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX