title: Oracle Apex: Javascript code in PL/SQL Block
body: <p>Is it possible to have JavaScript code in the PL/SQL block.
  I want to execute the pl/sql block containing JavaScript code on submit in oracle Apex page process.</p>
  
  <pre><code>DECLARE
    v_count   NUMBER;
  
    BEGIN
          select count(*) into v_count
          from summary
          where prd_items = 'Total';
  
   HTP.p ('&lt;script type="text/javascript"&gt;');
   HTP.p (   'alert(''The value of Total for BU is ' ||v_count|| '.\n'
        || 'You have to enter correct values to proceed further \n'');');
   HTP.p ('&lt;/script&gt;');
  END; 
  </code></pre>
  
  <p>I have <code>Submit</code> button in my page region and this pl/sql block is page processing item and execute on page submit(<code>Conditional:Submit</code>).</p>
  
  <p>But I am not able to pop-up the alert box. Please advise.</p>
  
  <p>Thank you. </p>