window.open not working with IE9

佐手、 提交于 2019-12-11 22:02:28

问题


I'm having trouble getting this to work in IE9:

edit: Sorry, I forgot to mention that $variable was a $_GET from a drop down menu selection.

I am currently offline,

<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>

It works fine in firefox and chrome. I'm not exactly sure what the problem is with IE. Any help would be appreciated.

Thanks!


回答1:


Tested on 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>


来源:https://stackoverflow.com/questions/17950019/window-open-not-working-with-ie9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!