开发者

How to make a Xul window get all input from another window?

I've thought about listen to the keypress and mouse events from开发者_如何转开发 the other window, but I don't know how to generate this event to my listener window.

Any idea how can I forward key and mouse events from a window to another?

--update

To change the focus of the current window would be an option. But it just don't work with onload="opener.focus();"


I guess you could set up functions in the child window and call functions in the parent window via window.opener. I guess in some way or another, you need to call a function in the parent, that seems like the simplest way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜