1

Is there a way to open a new tab on iPad in a Safari web browser using onchange event, for example let's say I have a select with a few options, and I want to call myFunc() when onchange event happens.

Let's say myFunc() does something like this:

function myFunc() {
    // do some checks
    // tell browser to open some link in a new tab
}

I've tried creating hidden link, setting it's href and target attributes and using click() to simulate user clicking on it, and another one which included window.open() and focus(), anyhow neither of those worked for Safari (they did for Chrome).

So what's the usual approach to this ?

whatamidoingwithmylife
  • 1,119
  • 1
  • 16
  • 35

0 Answers0