[英]Open another Popup window within a popup window?
I have these two codes. 我有这两个代码。 "win2" is what I open first, then when I'm trying to open "win". 首先打开“ win2”,然后在尝试打开“ win”时打开。 It doesn't do anything. 它什么也没做。 Please tell me what is wrong 请告诉我有什么问题
var win;
function viewTicketDetails() {
win = window.open('ViewTicketDetailsPage.aspx'
, 'TicketDetails'
, 'width=1040, height=600, innerHeight=600, location=no, menubar=no, status=no, titlebar=no, scrollbars=yes, left=0'
, '_blank');
win.focus();
};
var win2;
function viewTicketHistory() {
win2 = window.open('AffectedUserHistoryPage.aspx'
, 'Ticket History'
, 'width=1040, height=300, innerHeight=300, location=no, menubar=no, status=no, titlebar=no, scrollbars=yes, left=0'
, '_blank');
win2.focus();
};
You need to write viewTicketsDetaisl() in the page from where you want to open the second window. 您需要在要打开第二个窗口的页面中编写viewTicketsDetaisl()。 viewTicketDetails
should be written in AffectedUserHistoryPage.aspx
. viewTicketDetails
应该写在AffectedUserHistoryPage.aspx
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.