I want to use the URL method of launching a Paypal purchase flow described in [this SO question.](https://stackoverflow.com/questions/12136328/paypal-custom-link-to-payment)

Problem is, I can't seem to figure out how to launch a new website on the submission of a form. I've created a function and linked it to the onSubmit through the project triggers button but that's where I've stalled. I can't seem to find any other information on it. Am I going about this the wrong way or is there something else I should be looking at?

```
function launchPayPal() {
     //launch website here?
}

```

![enter image description here](https://i.stack.imgur.com/F0rHJ.png)