title: Call javascript function in specific point in visual basic code in classic asp
body: <p>So I have visual basic code in a classic asp page where I want to get a javascript error message to display if my code reaches a certain point:</p>
  
  <pre><code>&lt;%
  Function parseString(inputString){
   'some code
   if startPos &gt; 0 Then
    'some code
   Else
    displaymessage
   End if
  }
  'more code
  %&gt;
  
  &lt;script type ="text/javascript"&gt;
      function displaymessage() {
          alert("Wrong!");
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>How do I get the displaymessage function to execute at a specific point in my visual basic code?</p>