Avatar of Mike Waller
Mike Waller
Flag for United States of America asked on

popup in IE9 not working using javascript

I've added the following script to my wordpress page to allow the Visa payment as the default.  The client-side popup in IE (version 9) on my cart pages does not come up which is strange but it does come up on my laptop using the same browser and version.  Works just fine in FF.  Here is that script:

<script type="text/javascript">
<!--
document.getElementById('s2member-pro-paypal-checkout-card-type-visa').checked = true;
// -->
</script>

My popup blocker in IE is turned off too.  So both my desktop and laptop use exact same version but popup does not come up in desktop but does on laptop.  Settings in IE indicate that popup should display.  So when I remove that code, popup comes up on desktop but when I add it in, popup does not display in IE9. Any ideas why that would be happening?
JavaScriptWordPressPHP

Avatar of undefined
Last Comment
Mike Waller

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Kim Walker

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Mike Waller

ASKER
Thanks!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck