Hi Clay,
The problem is that you javascript is being executed as soon as it is reached & you vbscript when the Window_Onload event fires.
One way to get round this would be to call a javascript function at the end of your Window_Onload(), something like...
<script language="vbscript">
Dim dom
Sub Window_Onload()
Set dom = CreateObject("Msxml2.DomDocument.4.0")
dom.async = False
dom.loadXML("<parenttag><childtag /></parenttag>")
DoJs()
End Sub
</script>
<script type="text/javascript">
function DoJs(){
alert(dom.xml);
}
</script>
HTH,
Chris
|