From: Mike B. <mb...@Ga...> - 2003-07-25 16:03:30
|
Alexei Goussev wrote: > Is there something like ConfirmHandler, that could be registered with > the web client to handle window.open, so that "click()"-call will > return me a new HtmlPage enclosed in a new Window? Or what should i do > instead if i want to execute the JavaScript correct and get a new > Window and a new Page? You want to register a WindowEventListener with the WebClient. This isn't javascript specific btw. Check out the documentation http://htmlunit.sourceforge.net/window-howto.html The docs aren't fantastic but they do cover basic stuff like what you're trying to do. Feedback on what could be done to improve the documentation is always welcome. Patches with changes to the documentation would be even better ;-) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |