Redirect to a Webpage using a Java Script

Hi! I have a PayPal script (not the PayPal button) on my website. What I want to have happen is when a customer successfully orders, the webpage should redirect to another URL. Here is the script. I bolded the section where I believe the command to redirect should be placed.

I’ve managed to re-direct the script window itself to another page (sort of like a page within a page), but not the main page I’m using.

Any help is greatly appreciated!

Adding code to an HTML component is not a part of the Corvid product (which is what this forum is about). The basics of an HTML component is to put any HTML code in it. That code can be copied from any source that you want, but you need to know the exact code to put there (which is not related to Corvid )… You will need to check with the service provider to find out how to get it work.

However, I would highly recommend using the WixPay feature which will allow you to use Paypal, and will provide a more seamless integration and will be much easier to maintain and enhance.