beforeunload throws an alert message asking some stuff... You should use 'onunload'...
Fábio Miranda Costa Engenheiro de Computação http://meiocodigo.com On Mon, Mar 23, 2009 at 3:17 PM, Guillermo Rauch <[email protected]> wrote: > Something like this might work > window.originalLocation = window.location; > window.addEvent('beforeUnload', function(){ > if(this.location != this.originalLocation) > this.fireEvent('locationChange'); > }): > > // in your code > window.addEvent('locationChange', function(){ > // do sth > }); > > On Mon, Mar 23, 2009 at 3:11 PM, JoomlaCBE <[email protected]>wrote: > >> >> Ok, >> Iwill give Guillermo's trick a try and will post the results. >> Thanks to all of you, >> Jan >> >> On 23 Mrz., 14:26, Guillermo Rauch <[email protected]> wrote: >> > Maybe onbeforeunload will do the trick >> > -- >> > Guillermo Rauchhttp://devthought.com >> > > > > -- > Guillermo Rauch > http://devthought.com >
