If the name of a function is used, the function will receive 2 parameters when called:
- The browser event object
- A reference to the element that was double-clicked
The following code will hide the element once it's double-clicked.
ondblclick: this.style.visibility = "hidden";