While giving alert to the user using javascript we have two buttons ok and cancel buttons, by default ok is selected, how to make cancel button by default. please help me..
The last time i checked this is not possible for the confirm JS function Here are some possible alternatives: -creating your own custom popup layer(dhtml) to emulate confirm-dialog that does the same thing and including the script into all your pages -just pop-up a new 'small' browser window to do the confirm