topical media & game development

talk show tell print

professional-ria-05-SelfAttachingLoggingConsole.htm / htm



  <html>
  <head>
          <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
          <title>Console Example</title>
          <script type="text/javascript" src="script/self_attaching_console.js">                
          </script>
  </head>
  <body id="console" onLoad="load_logger('console'); log('The body has been loaded!')">
          <div id="main">
                  <script type="text/javascript" charset="utf-8">
                          function sendMessage() {
                                  textbox = document.getElementById('log_message');
                                  message = textbox.value;
                                  textbox.value = "";                                
                                  log(message);
                          }
                  </script>
                  <input type="text" name="log_message" value="" id="log_message" />
                  <input type="submit" name="submit_button" value="Append Message!" id="submit_button" onClick="log('Submit Clicked!'); sendMessage()"/>
          </div>
          <br/>
  </body>
  </html>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.