I come across modal dialogs everyday and I see different implementations all the time.
Most modal dialogs have a [X] in the upper right hand corner of the dialog along with a Cancel/Close button.
There are so many options, what is the best practice for closing modal dialogs? Also, are there any studies to reference showing what is preferred?
Implementations I have seen:
Cancel/Close button with [X] in the corner(top right/left, bottom right/left?)
Click anywhere on the modal to close
Just an [X] in the corner(top right/left, bottom right/left?)
Just a Cancel/Close button
Click anywhere outside the modal
Esc key with or without [X]/Cancel/Close