<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<body>
<table>
<tr>
<td><span id="celldiv1"></span></td>
</tr>
</table>
<%
'set obj1 = document.GetElementByID("celldiv1")
'obj1.innerHTML = "something"
document.getElementById("celldiv1").innerHTML = "something"
%>
</body>
</html>
You cannot access the DOM from ASP code... it is executed on the the server!
Open in new window