Havent found a builtin function for that but this might work: <body onload="startIt(document.window)"> (..) function startIt(oWindow) { oWindow.setAttribute("focused", true); oWindow.onFocus = function() { oWindow.setAttribute("focused", true); oWindow.onBlur = function() { oWindow.setAttribute("focused", false); } Not sure if is it the nice and neat way but.... as I said: might work =) Diego Chagastelles escreveu: > Example: when my page is inactive or disabled (I dont know) Gmail play > a little sound when a message comes. When the page is active there´s > no sound. > > On 10/13/06, * Flávio Gomes* <flavio at economisa.com.br > <mailto:flavio at economisa.com.br>> wrote: > > Disabled? > > Diego Chagastelles escreveu: > > > How can I detect when my page is disabled? > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >Javascript mailing list > >Javascript at LaTech.edu <mailto:Javascript at LaTech.edu> > >https://lists.LaTech.edu/mailman/listinfo/javascript > <https://lists.LaTech.edu/mailman/listinfo/javascript> > > > > > > -- > Flavio Gomes > flavio at economisa.com.br <mailto:flavio at economisa.com.br> > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu <mailto:Javascript at LaTech.edu> > https://lists.LaTech.edu/mailman/listinfo/javascript > > >------------------------------------------------------------------------ > >_______________________________________________ >Javascript mailing list >Javascript at LaTech.edu >https://lists.LaTech.edu/mailman/listinfo/javascript > > -- Flavio Gomes flavio at economisa.com.br