I'm using CRM 2016 Online.
I embed a HTML web resource in an entity form. This html is a bunch of <label> and <input>.
How can I set the focus to the first input on form's OnLoad?
I tried to run
document.querySelector('input').setFocus();
but the selector returns nothing.