i am using modal dialog by using showhtml.
does the modal dialog has default Ok and cancel button.or we need to build html for OK and cancel also
You need to add the buttons yourself. The showHtml() doesn't add anything to the HTML and only displays what you supply.
You can close the dialog by calling modal.close() method.