Alert

From PlainOldWebserver

Jump to: navigation, search

alert()

On the server side, do not use this. Take this enigmatic gem.


  <script language='javascript'>
     alert("Hello from Javascript");
  </script>
  <?sjs
     alert("Hello from SJS");
  ?>


The evaluation occurs for all of the SJS first before it is sent to the client. The order will be "Hello from SJS", then "Hello from Javascript." Unless you are debugging, try not to use alert() on the server-side.

Personal tools
Navigation