Success Criteria 3.2.1 On Focus: [Level A]
Any controls that acknowledge an 'on focus' event should not change the context of the page. That is, it should not navigate to other pages, or even part of the same page, and should not perform any submission.
Techniques
Using "activate" rather than "focus"
This technique is just ensuring that only expected events happen when interacting with a web page. Submission of a form and navigation to another location should be made by the activation of a button or link. If a control gains focus, there may be some presentational or content change but there should be no other action which changes the current context the user is in.
Failures
Opening a new window on page load
Unfortunately, it is not uncommon for a web site to open a new window when a page is loaded for the purpose of advertising. This is disorienting for users and a source of great irritation. What you shouldn't do is shown below.
window.onload = showAdvertisement;
function showAdvertisement()
{
window.open('advert.html', '_blank', 'height=200,width=150');
}