La soluzione postata risolve con IE, ma non funziona più su chrome.
Leggete i commenti nel codice.
codice:
<script language=javascript>
var isOpera, isIE = false;
if(typeof(window.opera) != 'undefined'){isOpera = true;} ## MODIFICATO ANCHE != con ==, ALLA FINE isIE è SEMPRE TRUE
if(!isOpera && navigator.userAgent.indexOf('Internet Explorer')){isIE = true;}
function confirmChoice(link,message)
{
var c = window.confirm(message + '?');
if (c) location.href=link;
}
//re-define for IE
if(isIE)
{
window.alert("IE"); # LO MOSTRA SEMPRE !!
function confirmChoice(link, message)
{
var referLink = document.createElement('a');
referLink.href = link;
document.body.appendChild(referLink);
var c = window.confirm(message + '?');
if (c) referLink.click();
}
}