Using consolejs.js
- make a div with an id
- style it (height and width)
- style the classes:
- .consolejs
- .bottxt
- .usertxt
- make an interesting callback function to respond to input
- pass your div to new Consolejs(document.getElementById('mydiv'), callback);
- Consolejs.backdoor allows you to post messages into the window