I am using the above 2 commands on my website. It seems they work for 95% of people visiting the page it should trigger but for others it doesn’t.
Does anyone know if these javascript commands can be blocked at all? I am having a real headache finding out why they don’t work sometimes.
p.s I am not using these for spam or anything, just for processing payments.
Thanks.
EDIT: I have a tag replacement for JS being disabled. I am thinking more of a random blocking that a user isn’t generally aware of. None of the people who have reported the issue would be likely to install a pop up blocker
Use
window.locationinstead ofdocument.locationfor full support across all browsers.Are you using iframes? That’s the only reason you should use
window.parentor elsewindow.parentjust points to the current window.If you’re running this code inside of an iframe to change the parent windows locations (
window.parent.location) – it will only work on the same domain. If the domains are different your code will fail.There are work arounds to getting subdomain support working using
document.domainbut I’m already making too many assumptions in what your issue is.