Results 1 to 2 of 2

Thread: Setting initial focus to a textbox when the page loads.

  1. #1

    Thread Starter
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    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

  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    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.
    ~Peter


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width