Setting initial focus to a textbox when the page loads.
I can do this by using:
Code:
document.Form1.MyTextBox.focus();
However, if the page is displayed inside a modal dialog box, IE Only, then the Javascript errors.
Modal popups are an IE things, and do not work in firefox, and thus only IE has this problem.
Woka
Re: Setting initial focus to a textbox when the page loads.
I have no idea what you mean by the page being displayed in "a modal dialog box".
I give focus using a javascript that is run on page load. It's always worked for me, and i only use IE.