Collision detection


What is the simplest code to do a Collision detection using javascript?

Thanks in advance for your help.

I used this jQuery plugin in a project recently and it worked quite well.

Other than that, you might want to read this SO thread where some more lightweight techniques are discussed.