简体   繁体   English

PHP 文件中的 window.open 在 IE 11 中不起作用

[英]window.open in PHP file not working in IE 11

I am having trouble with my PHP webpage at http://lila.godel.com/html/countymp.php .我的 PHP 网页在http://lila.godel.com/html/countymp.php遇到问题。 It worked fine until I upgraded to IE 11. Now when I click on the View Counties button the correct web page is not opened in a new tab or window based on my browser settings.在我升级到 IE 11 之前,它运行良好。现在,当我单击“查看县”按钮时,根据我的浏览器设置,不会在新选项卡或窗口中打开正确的网页。 Instead the web page just reloads with the radio button selection reset back to the default.相反,网页只是重新加载单选按钮选择重置回默认值。

When I tested the web page in another browser it worked correctly.当我在另一个浏览器中测试网页时,它工作正常。

countymp.php contains the following in the body: Countymp.php 在正文中包含以下内容:

<? include("./cmform.php") ?>

The code for the cmform.php file may be viewed at http://lila.godel.com/msgfiles/cmform.txt . cmform.php 文件的代码可以在http://lila.godel.com/msgfiles/cmform.txt查看。

If I add a line containing echo "Test";如果我添加一行包含 echo "Test"; after the line containing the window.open code in cmform.php clicking the View Counties button correctly results in the webpage reloading with the word Test at the top above the radio buttons.在 cmform.php 中包含 window.open 代码的行之后,正确单击“查看县”按钮会导致网页重新加载,单选按钮上方的顶部带有“测试”字样。

Any ideas on how to change the code so the form will work correctly in IE 11?关于如何更改代码以使表单在 IE 11 中正常工作的任何想法?

Actually the popup is blocked by IE.实际上弹出窗口被IE阻止了。 You can change settings.您可以更改设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM