读书人

asp中弹出窗口有关问题为什么小弟我

发布时间: 2012-02-04 15:43:08 作者: rapoo

asp中弹出窗口问题,为什么我不成功
<script>
<!--

function edit(id){
alert( "产生未知错误,操作中断! ");
window.open( "edit.asp?id= "+id, "newwindow ", "height=100, width=400, toolbar=
no, menubar=no, scrollbars=no, resizable=no, location=no, status=no ") ;
}

-->
</script>
--------------------------------------
<td valign=top align= "center " bordercolor= "#000000 " width= "10% ">
<a href= "# " title= '资料 ' onclick= " "edit( "&rs( "Id ")& ") " "> [编辑] </a> </td>

[解决办法]
调用的时候出错鸟...改为下面的:
<td valign=top align= "center " bordercolor= "#000000 " width= "10% ">
<a href= "# " title= '资料 ' onclick= " "edit( <%=rs( "Id ")%> ) " "> [编辑] </a> </td>

读书人网 >ASP

热点推荐