title: How to make a redirect in the browser using pdf?
body: <p>I want to ask the user a question and if they click the <em>yes</em> button, then they should be redirected to another page.</p>
  
  <p>Adobe Acrobat allows us to insert JS in the pdf:</p>
  
  <pre><code>if (app.alert("Do you want to go on page X?", 2, 3) === 4) {
      // Make the direct somehow.
  }
  </code></pre>
  
  <p>I don't think we can use the <code>location</code> object there.</p>