window.open not working with IE9

2019-08-29 09:43发布

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条回答
相关推荐>>
2楼-- · 2019-08-29 10:40

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>
查看更多
登录 后发表回答