关于showModalDialog的提交表单的问题

b.html
的一段代码:
<form name="d_f" action="javascript:void(null)" method="post" onsubmit="f_submit()">
<input type="submit" id="s_OK" name="s_OK" value="确定"/>
</form>
a.html
的一段代码:
javascript:var handle=window.showModalDialog('b.html',0,'dialogWidth=420px;dialogHeight=250px;help=0;status=0;menubar=0;titlebar=0;');

我用的是XAJAX。

提交的时候b.html打开一新的窗口,窗口的地址是:      

javascript:void(null)

怎么才能提交表单的时候不打开这个新窗口呢?

你可能感兴趣的:(JavaScript,html)