Comment

minghong

Typo. Please change "ActiveX" to "ActiveXObject". ;-)

Parent comment

minghong

Hi guys, I found that by re-assigning outerHTML of the button element, the value can be fixed automagically. e.g. forms["form"].onsubmit = function( e ) { var button = document.activeElement || e.explicitOriginalTarget; // Get the button being pressed (work for IE, Mozilla and Opera only) alert( button.value ); // The value is wrong if ( window.ActiveX ) { button.outerHTML = button.outerHTML; } alert( button.value ); // The value is correct return false; // Just for testing }