Could you please suggest if I did right?
The case is that I have an HTML form, and each time I click anywhere within the form boundaries, even on empty spaces between controls, the screen jumps to the top of the form. Once again, it’s only happening with IE.
At first I thought it’s related to some JQuery listeners, but when I removed all the links to JQuery it still kept on happening.
So what I did is adding onclick="return false" to the form attributes. It stopped the mentioned above screen jumping and all the JQuery/PHP functions kept working fine.
What I wanted to ask whether there are negative reflections of the way that I solved this issue?
Thanks in advance,
EP
Even if your solution apparently solves the problem, it’s very likely that the issue is still just hidden.
Try identifying any onclick events attributed to your
<body>or<form>elements, disable them and then try again.You will most likely bump into this solution later down the road and it’s going to cause headaches you can avoid by doing some more digging now.
UPDATE: Try validating your code http://validator.w3.org/