Jump to content

Onunload?


CSS Man

Recommended Posts

I am using a piczo website maker. You can put in html. So I put "Add HTML". i wanted the onunload event for DHTML. So it worked, but is there a way for the message to pop up only when you click exit? Because there are other pages, and whenever you click them, it comes up.(the title was suppost to be "onunload".)Fixed.

Edited by Jonas
Link to comment
Share on other sites

there is no way to catch the user when the click File/Exit or when they click the X in the upper right hand corner of the browser window.The onunload attribute will, as you has discovered, always execute when the page is left. You could write some script so that it will only trigger when you click a link that is not a link to a page on your site.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...