【问题标题】:window.open not working with IE9window.open 不适用于 IE9
【发布时间】:2013-07-30 18:38:25
【问题描述】:

我无法让它在 IE9 中工作:

编辑:抱歉,我忘了提到 $variable 是来自下拉菜单选择的 $_GET。

我目前离线,

<a href="#"
    onclick="window.open('https://domain.com/contact-form?chatq=<?php echo $variable;?>@domain.com','resizable=1,width=320,height=200'); return false;">
    <br />click to send an email.
</a>

它在 Firefox 和 chrome 中运行良好。我不确定IE的问题是什么。任何帮助将不胜感激。

谢谢!

【问题讨论】:

  • 实际输出页面中是&lt;?php echo $variable;?&gt;吗?
  • 控制台有什么要说的吗?
  • 控制台是否出现“无效参数”错误?
  • 您是否尝试过为chatq 使用一些简单的参数值,或者根本没有参数
  • @leftclickben:是的,$variable 是来自下拉选择的 $_GET,它将打开该人的联系表。

标签: php javascript internet-explorer internet-explorer-9


【解决方案1】:

在 IE9 上测试:

<?php

$variable = 3;

?>

<a 
onclick="window.open('https://domain.com/contact-form?chatq=<?php echo $variable;?   >@domain.com','resizable=1,width=320,height=200'); return false;">
<br />click to send an email.

</a>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多