Is there a way to globally set the focus on the first input field in a multi-page application? Also depending on the user's profile, the first field may or may not be an input field. How can I check for this in JavaScript and step through all the fields in the form until an input field is found.