[英]Have to click twice on a popup window/Dialog box
I am using a webkit browser and getting an bug as when I am trying to close the popup its not active only and the parent browser is active even after the pop up for uploading files is open. 我正在使用Webkit浏览器,并遇到一个错误,因为当我尝试关闭弹出窗口时,它不仅处于活动状态,而且父浏览器处于活动状态,即使打开了用于上传文件的弹出窗口也是如此。 I have to click on popup to activate it first and then again to make any selection on it. 我必须先单击弹出窗口以将其激活,然后再单击以对它进行任何选择。
How can I make the pop up active as soon as its open. 如何在弹出窗口打开后立即将其激活。
Is there a way to add event handler in the input tag only to make the pop up active and inactive the parent browser. 有没有一种方法可以在输入标签中添加事件处理程序,以仅使弹出窗口处于活动状态,而使父浏览器处于非活动状态。 for eg 例如
<form action="${ctx}/home/step11/uploadReport" method="POST" enctype="multipart/form-data" id="form_upload">
<table style="margin-left:25px">
<tr>
<td colspan="5" style="vertical-align:middle; font-size:100%">Demo Request Upload:</td>
</tr>
<tr>
<td style="vertical-align:middle"><input id="uploadFileId" name="fileName" type="file" multiple="true"/></td>
<td/>
<td>
<c:if test="${empty editable}">
<input id="btnImport" class="active small button" disabled="disabled" type="button" value="Import"/>
</c:if>
<c:if test="${not empty editable}">
<input id="btnImport" class="active small button" type="button" value="Import"/>
</c:if>
</td>
</tr>
</table>
</form>
尝试创建一个事件,该事件在浏览器打开时会自动单击,因此它将在几微秒后激活
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.