PDA

View Full Version : Getting the focus of a specific window



houstonrca
06-09-2009, 05:46 PM
1) DHTML Window widget (v1.1)

2) http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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

ddadmin
06-10-2009, 03:43 AM
Just call the function:


dhtmlwindow.setfocus(windowvar)

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


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

houstonrca
06-10-2009, 07:38 PM
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