javascript语句错误

来源:百度知道 编辑:UC知道 时间:2024/06/18 13:54:33
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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>
<script type="text/javascript" language="javascript">
var XmlHttp;
function createXMLHttpRequest ()
{
//在IE下创建XMLHTTPRequest对象
try
{
XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
XmlHttp = new ActiveXObject("Micr

<input type="button" name="Submit" value="按钮" / onclick="addnew();">

不会是因为这个反斜杠问题吧~那也太亏勒~

我稍微测试了一下...var url = 'ltcl.asp?action='+putword.value;
这一句...是有问题的..putword未定义....putword你这边的意思是想指定.input的里面的值吧..这样是提取不到的...
把它改成..var url = 'ltcl.asp?action='+document.all.putword.value;
这边的putword是指的里面name为putword的元素..
或者可以改成..document.getElementById("putword").value都可以实现..
这样是指的id为putword的元素

汗,一楼说的对