Results 1 to 3 of 3

Thread: Getting the focus of a specific window

  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Getting the focus of a specific window

    1) DHTML Window widget (v1.1)

    2) http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem:
    First of the windows work great !!! However , I am opening up
    several windows . My question is how do I get the focus of a specific window?

    Thanks in advance...
    HoustonRCA

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Just call the function:

    Code:
    dhtmlwindow.setfocus(windowvar)
    where windowvar is the variable the DHTML window in question was assigned to when it was first opened. For example:

    Code:
    <a href="javascript:dhtmlwindow.setfocus(ajaxwin)">Set focus to this window</a>
    DD Admin

  3. #3
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    Again, thank you very much. Is there a list of commands/properties for
    the dhtml windows , so I dont have to bother you guys with minial questions.

    Thanks in advance ,
    houstonrca

Bookmarks

Posting Permissions

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