This isn't as fancy, but it will return JS for clicking the element under the mouse.
For more information, see the wiki Searching the Forum for Answers section.