1. When talking IE it is best to give ver number as they all work differently. I check the below code in IE8 and it works for me.
2. We are in the dark and have to guess if code is not supplied.
3. java servlets
What I check:
<p>Click the button to display a confirm box.</p>
<button onclick="myFunction()">Try it</button>
var r=confirm("Press a button!");
x="You pressed OK!";
x="You pressed Cancel!";
4. Such things as confirm boxes, prompt boxes, and alert boxes are not used much in programming anymore except for testing purposes.