请高手解决有关onClick="window.open('query_2.jsp?id传值问题

来源:百度知道 编辑:UC知道 时间:2024/06/18 02:40:57
onClick="window.open('query_2.jsp?id='+document.all.sid.value,'&key='+document.ass.type.value,'',
'resizable=no,menubar=no,status=no,scrollbars=no,top=200,left=300,toolbar=no,width=600,height=400')"
我用这个语句报错.可能是引号的问题.请高手帮忙解决一下
先谢谢了.急

网页源文件如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<p>
<script language="javascript">
function opennew ()
{
window.open('http://query_2.jsp?id='+document.all.sid.value+'&key='+document.all.ass.value,'','resizable=no,menubar=no,status=no,scrollbars=no,top=200,left=300,to