Javascript events
I need to show a div when a visitor attempts to leave my page.
I've tried using "onMouseout" on a div.
I've also tried onbeforeunload, and onbeforeunload
These events are not behaving as I expected.
The div shows when a user leaves the page - but also when the page loads.
That's no good.
Also - in the case of "onMouseout" it fires when I try to take the mouse over to the scroll bar and scroll down. Also not good.
O Need something that only shows when the user is leaving - not arriving, or scrolling.
What event should I be using?
Thanks folks!
Doug
-
n7 Studios -
Thanks
SignatureTHE Web Development Guru - Bespoke WordPress Theme, Plugin + iPhone Apps [HTML5, CSS3, PHP, MySQL].{{ DiscussionBoard.errors[351278].message }} -
-
dougyitbos -
Thanks
{{ DiscussionBoard.errors[351539].message }} -
-
Jenniferlinn Banned-
Thanks
{{ DiscussionBoard.errors[359276].message }} -
-
n7 Studios -
Thanks
SignatureTHE Web Development Guru - Bespoke WordPress Theme, Plugin + iPhone Apps [HTML5, CSS3, PHP, MySQL].{{ DiscussionBoard.errors[359873].message }} -
-
dougyitbos -
Thanks
{{ DiscussionBoard.errors[373590].message }} -
-
n7 Studios -
Thanks
SignatureTHE Web Development Guru - Bespoke WordPress Theme, Plugin + iPhone Apps [HTML5, CSS3, PHP, MySQL].{{ DiscussionBoard.errors[373840].message }} -
-
dougyitbos -
Thanks
{{ DiscussionBoard.errors[374788].message }} -