Anyone have encountered the problem where my modal popup window requires refresh when submit to the server and upon returning, IE7 opens up another windows. It didn't happen in IE6.

I used the common script to create a modal popup window:

modalWin =, "", sWinFeat);

Over at my jsp:

function refresh() {
// Fix: to avoid double submission during check
$('button').disabled = true;

document.forms[0].action = '/myAction/';

Did IE7 behave this way now or is my script in jsp above is wrong?