I have a page with textboxes and buttons. When the page loads, often times, focus is in one of the textboxes and I don’t want this to happen. However, I don’t want to use something like setfocus in the page load event because then when buttons are clicked the page will jump. How do prevent the textboxes or any controls for that matter of getting focus on page load?
Share
strange. by default, the page will not focus on any form input unless you set focus on it.
I think you have to cancel all focus by Setfocus on page.