My form Submit button has an onClick="myFocus()" call, which looks like:
<code>
theFocus = document.getElementById('warning');
theFocus.tabIndex = 'auto';
theFocus.style.background = 'red';
theFocus.focus();
</code>
It works - briefly. Right after clicking Submit (top of form no longer visible when Submit reached), the focus goes to the target element and turns red - but only while the page is still working on reloading. Then the focus is placed back at the top of the page. Has me stumped.
NOTE: the ".tabIndex = 'auto' was a suggestion here in another (inderectly related) thread. Wasn't working before I added that, still doesn't.