index.htm<script>
function showmodal()
{
window.showModalDialog("sd.htm","window","dialogWidth:220px;dialogHeight:140px;status=no;help=no");
}
</script>
<input type=button value=show onclick="showmodal()">
<form method="post" name="setweekfood" action="dd.php">
dd
</form>sd.htm <script>
function sdelurl()
{
opener.setweekfood.submit(); //这句错误
}
</script>
确定删除?
<input type=image name=submit src="../image/submit.gif" onclick="sdelurl();window.close()" width="38" height="20"> </p>
function showmodal()
{
window.showModalDialog("sd.htm","window","dialogWidth:220px;dialogHeight:140px;status=no;help=no");
}
</script>
<input type=button value=show onclick="showmodal()">
<form method="post" name="setweekfood" action="dd.php">
dd
</form>sd.htm <script>
function sdelurl()
{
opener.setweekfood.submit(); //这句错误
}
</script>
确定删除?
<input type=image name=submit src="../image/submit.gif" onclick="sdelurl();window.close()" width="38" height="20"> </p>
改为
parentWin = window.dialogArguments;
parentWin.setweekfood.submit();