how to put the focus on a field ?

hi,when you arrive into the add view or the edit view, why the focus is never on the first field to complete/edit ?
i search into phpmaker options to select which field must have the focus first, but i did not find this option.when i create a basic single table with only 2 field (one ID, one name), phpmaker never put the focus on the name field. i always need my mouse to enter in the field.If you have ideas to improve this on ALL tables, it will help ! i guess someone wil ltel me to add javascript somewhere, but it is a huge task to do it in all the table with different fields name, specialy the first field.have a good day.

You may use global Startup Script (which fires in all scripts) to check if there is a form (e.g. find “form.ew-form”) and get the first form element and focus it.