FireBug tip: $1
Since my recent briefing about FireBug, I have been in touch with Joe Hewitt (the extension author) and found out the missing link I had not found out about how to use its Inspect feature via the console. Once you pick a node, it becomes available as
And it gets better.
$1 from the console, so if you want to register an event handler on something in a page to try out something, you could run $1.addEventHandler(...). Or replace or otherwise process its innerHTML, and so on. Useful.And it gets better.











Yeah, quite useful. Joe told me this as well.
Later, I took a quick look in his code, and find some other goodies, such as $ function used as a shortcut for document.getElementById (like in Prototype) and dir(element) function which lists all attributes of an object.