Web浏览器控件打开中的弹出窗口已最小化 [英] Pop ups in webbrowser control opening as minimized

查看:90
本文介绍了Web浏览器控件打开中的弹出窗口已最小化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在研究POC解决方案,其中有一个表单应用程序,其中包含webbrowser控件,可呈现一些数据.此应用程序已隐藏,对用户不可见(无UI).

我已经设置了一些计时器.触发此计时器时,我想将click事件发送到浏览器控件,以便打开clicked链接(就像在IE中打开的任何普通窗口一样).我正在使用postmessage模拟click事件.除了以下问题,其他所有内容似乎都正常运行.

每当接收到click事件时,弹出窗口都不会像顶部普通窗口一样打开.它以最小闪烁的任务栏菜单形式打开.我需要单击以查看打开的弹出窗口.

但是我想要的是弹出窗口,以打开它作为顶部窗口(windowstate正常),就像我们单击IE中的任何链接时所看到的那样.

我无法找出我在这里想念的是什么.

任何帮助或指针,不胜感激.

在此先感谢您.

Hi,

I am working on a POC solution where in I have a form application which has webbrowser control in it rendering some data. This application is hidden and will not be visible to the user (no UI).

I have setup some timer. On triggering of this timer, I want to send a click event to the browser control so that clicked link is opened (like any normal window that opens in IE). I am simulating the click event using postmessage. Everything seems to be working fine except for the following issue.

Whenever the click event is received, the pop window is not opening as the top normal window. It is opening as minimized blinking task bar menu. I need to click that to see the opened pop up.

But what I want is the pop up to open as top window (windowstate normal) like we see on clicking any link in IE.

I am not able to find out what is that I am missing here.

Any help or pointer is appreciated.

Thanks in advance.

推荐答案

使用javascript中的window.open()方法
use window.open() method in javascript


这篇关于Web浏览器控件打开中的弹出窗口已最小化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆