How to close and open external pages ?

Hi,

How can i do a : window.open and window.close in WIX CODE ?

Thanks

Hi Jorge,

You can’t use the window DOM element. WixCode understands all of Javascript, except for anything that accesses the DOM. This keeps the user from inadvertently “breaking” something. Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w.

What are you trying to do? If you want to open/close a window, you can use a Lightbox .

I hope this helps,

Yisrael

Hi, Thanks for the detailed answer. I appreciate it.

I am trying to implement Azul Payment Method, opening its Payment Page to allow user to complete theirs payments. Azul Payment Method Proccess is like Paypal Button Proccess, where the current page shows an over loading page while the user is in Azul Payment Page completing the payment processs.

How should i do it in WIX to Implement Azul Payment Method ?

Azul Payment Service:

Thanks

Hi,
If they support REST api it might be possible.
Check out this article:

Good luck!
Roi.