使用javascript打开弹出窗口 [英] Open Popup window using javascript

查看:113
本文介绍了使用javascript打开弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望同时在两个不同的弹出窗口中打开一个aspx页面(test.aspx)。

I am looking to open one aspx page (test.aspx) in two different popup windows at the same time.

到目前为止第二个替换第一个首先重新创建页面。

what I have till now second replace first one and page recreate in first.

我认为这需要更多说明,

I think it require more clarification here so,

基本我创建一个图表并将其放在test.aspx,
中,并将该图保存为图像文件。
我在test.aspx上放了一个按钮,该按钮与stimulsoft报告相关联,该报告显示该图像的pdf格式。
现在,如果我用test.aspx打开,它将替换图像页面。但我希望同时看到图表和PDF格式。
一个解决方案是我创建一个新的空白aspx页面来显示报告,但我尝试避免添加新页面,因为可以在test.aspx上挂载报告。

Basicaly I create a graph and place it in test.aspx, and save that graph as image file. I put a button on test.aspx which linked with stimulsoft report and that report show pdf format of that image. Now if i open with test.aspx it replace the image page. but I want to see both graph and pdf same time. One solution is I create a new blank aspx page to display report but I try avoid to add new page because it is possible to mount report on test.aspx.

问题只是在同一时间打开两个POPUP窗口,但可能是有效的。每个弹出窗口都包含自己的动态控件和报告,如mrt。

The question is just to open a single POPUP window twice on same time, but may be it is posible or not. and each and every popup containing there own dynamic controls and report like mrt.

推荐答案

更改两个不同调用中的窗口名称:

Change the window name in your two different calls:

function popitup(url,windowName) {
       newwindow=window.open(url,windowName,'height=200,width=150');
       if (window.focus) {newwindow.focus()}
       return false;
     }

当您打开具有相同网址的新窗口时,windowName必须是唯一的,否则相同窗口将刷新。

windowName must be unique when you open a new window with same url otherwise the same window will be refreshed.

这篇关于使用javascript打开弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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