Docs


Outputting data

Your run can output data in various places.

The "run header" is a normal HTML div, that floats on top of the graphics area. We can output to the run header using AB.msg:

 

AB.msg ( html, n );     // Write a message (html) to a numbered location in the run header  
AB.msg ( html );        // Write message to location 1

AB.escapeHTML ( string );            // return string with all HTML chars escaped
AB.escapeHTMLshort ( string );       // just escape < and >

AB.newDiv ( id );       // Create new div on page with this id (can then set style, content) 


Writing instructions for the user

You can write instructions for the user:

Output to disk or console

You can also output to disk or to console: