It is better to use standard methods of access to forms and forms of management:
document.forms.form_id.elements.form_field_id.focus();
(notice formand elementsaddition).
or
document.forms['form_id'].elements['form_field_id'].focus();
if identifiers / form / form names have characters that cannot be part of Javascript identifiers, for example. "|", "-", "." etc.
( ), , , .
, . , Safari ? ?
window.setTimeout(function(){
document.forms['form_id'].elements['form_field_id'].focus();
}, 100);