window focus error
Posted on 2003-12-07
I have the following code:
WinID = window.open(WinURL,WinTarget,'top=130,left=200,height=' + WinHeight + ',width=' + WinWidth + ',resizable=' + isresize + ',scrollbars=yes,menubar=' + ismenubar + ',toolbar=' + istoolbar + ',directories=no,location=' + islocation + ',status=' + isstatus);
The problem is that if I press the same link to open the window twice in a row it will not focus the window the second time, once it already has that page loaded in it. When I uncomment the focus line I get the error "Class doesn't support Automation"
any clues to the problem here, or how to get the window to focus everytime, even if you're just loading the same page into it again....