简体   繁体   中英

window.open not working with IE9

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!

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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