Possible Duplicate:
Javascript close alert box
A confirm box can be opened by,
confirm("Sure?");
which opens a confirm pop up with two buttons- OK and Cancel.
The pop up closes when either of the two buttons are clicked. How can we close the pop up without clicking the buttons, pragmatically? Can we trigger the event which closes the pop up using JavaScript?