1<html>
2<head>
3<script event="onload" for="window">
4xmldso.XMLDocument.load("cd.xml");
5</script>
6<object classid="clsid:550dda30-0541-11d2-9ca9-0060b0ec3d39" height="0" id="xmldso" width="0">
7</object>
8<table>
9<tr><td><span datafld="name" datasrc="#xmldso" id="test"></span></td></tr>
10</table></head>
11</html>
如何将ID中的值取出传给变量呢?
---------------------------------------------------------------
try
1<input onclick="alert(document.all('test').innerText);alert(xmldso.recordset.fields('name').value)" type="button" value="value"/>