You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

7. April 2010, 13:23:13

pegaso52it

Posts: 1

window.onunload

Hi all,
I'm using opera 10.51 (os windows xp)

within this simple code:

window.onunload = myFunction;

function myFunction()
{
// here my code
}

It seems to me that myFunction is never called.

I have tryed
opera.setOverrideHistoryNavigationMode('compatible');
but it seems that has no effect.

Could someone help me?
Are there examples?

8. April 2010, 00:23:20

xErath

javascript guru

Posts: 6588

Welcome ! cheers

It does not work if the window/tab is closed. Works everywhere else. Known limitation.
For a collection of user scripts visit
http://my.opera.com/xErath/blog/

Forums » General Opera topics » User JavaScript