Is there a way to use javascript focus on an input without having the page scroll. I would like to have the curser start in the input field but I don't want it to scroll to that part of the page.
currently I am using
function setFocusToTextBox() {
document.getElementById("FirstName1").focus();
}
window.scrollevent), and when the element is not outside of the viewport, give it focus like you're already doing.