Ummm...Philip, although he is using Java to *write* the output, that's just server-side Java.
That server-side Java *IS* creating
JavaScript, correctly.
Specifically, the second set of Java code is producing *this* client-side JavaScript for the browser:
Code:
if( info == '--')
{
var x = confirm('Für diese Aktion wurden bereits Kosten verbucht. Sind Sie sicher, dass Sie weitere Kosten verbuchen wollen?”');
if ( x )
{
window.open('Costreason.html', '', 'height=350,width=450');
window.close();
}
}
It is true that he has a bogus "literary quote" mark in there, as shown in the large red text, but that won't hurt anything as it will be ignored by JavaScript (and Java, incidentally) and only the subsequent apostrophe will be used, correctly.
As shown, the code is missing one closing right brace } as I have indicated, but since he says the code works in browsers other than IE, it's probably really there in the actual code.
I really think he may be right, that his is a problem with a popup blocker.
********
On the other hand, the code also doesn't make tons of sense.
He opens the popup window for 'Costreason.html' but then *CLOSES* the CURRENT WINDOW. Why? If you only want one window to remain open, just *replace* the current window with the new one.