title: Adobe Acrobat Pro XI - Adding Javascript to a PDF
body: <p>This may seem like a really novice question, but I have been tearing my hair out all day on this.</p>
  
  <p>I am running the trial version of Adobe Acrobat Professional XI
  I am looking to add simple JavaScript to a PDF file.</p>
  
  <p>The aim is to have a PDF file, that when opened, pops up with an alert message with Yes and No options.
  Click Yes, and the alert goes away, leaving the PDF to be read.
  Click No, and the file closes.</p>
  
  <p>The main trouble I am having is where to write my code. 
  I have used the JavaScript Debugger but it is not very intuitive, and doesn't seem to let me add JavaScript to the file, only run from within the debugger.</p>
  
  <p>All the tutorials I have looked at online show me the code, but not where to write it.</p>