我是真实的作个这样的程序的..
两个方法 ,一个是在iframe里打开一个asp页面来写入数据库
比如iframe的id为mini
sub doit
document.all("mini").location.href=writetodb.asp?id=thisid
end sub
这种方法有个缺点,就是有时候根本来不及执行程序程序就会跳转到别的页面
还有就是用xmlhttp了
sub doit
set obj=createobject("microsoft.xmlhttp")
url="http://aa.com/writetodb.asp?id=thisid"
obj.open "get",url,false
obj.send
end sub