The problem is disabling and re-enabling of controls is completely solved in the section 3 of my article, sub-sections "Temporarily Disabled Elements" and "Workaround for Mozilla" (yes, I revealed a bug in Mozilla and reported it to their team):
Modal Popup From Scratch[
^].
But please better read the whole article; it's all relevant to your problem. First of all, I explain that
confirm is hardly suitable for production-level applications. You rather need a modal behavior emulated on a single page, the mechanism loosely referred to as "modal popup". You don't have to use my code (but you can); in particular, you can just use my explanations; you can use alternatives such as jQuery Dialog or other (3rd-party) jQuery plug-ins.
—SA