Saturday, March 31, 2012

Setting initial focus to a textbox when the page loads.

I can do this by using:
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.
WokaI 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.

0 comments:

Post a Comment