Hi
How can I have an event fire off (i.e. a popup) when a user closes their browser or clicks an offsite link, but not when they submit a form or follow a link on the page.
I have an "edit article" page where a user updates details in a form. During this time the article is locked. If the user browses any other page on my site the article will be unlocked, but if they follow an external link or close the browser it isnt, so I want to have a popup for that situation that does the unlock (ie some php code). Is this possible?
cheers
How can I have an event fire off (i.e. a popup) when a user closes their browser or clicks an offsite link, but not when they submit a form or follow a link on the page.
I have an "edit article" page where a user updates details in a form. During this time the article is locked. If the user browses any other page on my site the article will be unlocked, but if they follow an external link or close the browser it isnt, so I want to have a popup for that situation that does the unlock (ie some php code). Is this possible?
cheers