Add this to your html file:
<script type="text/javascript" src="expose.js"></script>
then use 'exposed(this)' on an event for the object for which you want to display the properties. It will open a new window with a list of the properties à la dir() in python.
To test it, click here(or anywhere in this div, inside the red box)!
© Yves Dofsman, http://projects.zioup.org/scratchpad
Add this to your html file:
<script type="text/javascript" src="debug.js"></script>
then use 'debug('<i>some html txt</i>')' . It will open a new window, and append messages to it every time you invoke debug().
To test it, click here(or anywhere in this div, inside the red box)! When you click again, it will append messages to the debug window.
© Yves Dofsman, http://projects.zioup.org/scratchpad