I have created a simple webapp for mobile device and found a strange behaviour that is quite random, and difficult to debug.
In most cases, when there is an obvious javascript error, (and in most browsers), the page just refreshes when the error happens (you can see the red cross in Chrome's console flash very quickly before the page refreshes). Occasionally, if you try to reproduce it quickly, the page would NOT refresh so I can actually examine the error in the console.
However, some times, the page refreshes without showing the red cross flash. This makes it impossible to find out where the possible "error" is.
This can happen especially when we are "extreme testing" the "click" functionalities, for example clicking on a submit button or link like crazy. My guess is that, when you click on a button like crazy, the event.preventDefault() inside the click event handler does not happen properly or on time, and some how a click get's propagated through causing a submission instead of performing what is coded in the click event handler.
Just wondering if anyone out there has encountered similar issues or know what I can do to prevent this behavior.