Fotiman - 7:57 pm on Apr 1, 2009 (gmt 0)
You can't use onunload like that. An alternative would be to track how many people hit each step. For example, user reaches first step, database is updated, user reaches second step, database is updated... etc. You can then track how many people reached the first step, up to n steps, and subtract from the n step to determine how many people quit and at which step.