I always thought there was a better way to access the dom. This is a tool that allows you to use extremely simple syntax to access dom elements. It makes an object with the name of your choice (I chose "$") that contains a reference to all elements that have an id.
example:
<script> $.foo.innerHTML = "Hello world" </script>
You can even choose to use an object that already exists (I chose "document" because it makes sense)
document.foo.innerHTML = "Hello world"
If you want to live dangerously, you can even make everything global!
foo.innerHTML = "Hello world"
Opera 11.62 - Uncaught exception: TypeError: Cannot convert 'this[a]' to object
Chrome 16.0.912.63 - TypeError: Cannot set property 'foo' of undefined
FireFox 12.0 - Error: can't convert undefined to object
IE6/7/8 - Error: Object expected
on jsfiddle.net works without error, but why not work on the page?
Hosting died as a specially