How to get pointer to a DHTML created element in MSHTML???
Posted on 2004-10-03
I have a web page that creates an input box when clicked on the cell of a table. THe html is like this:
<table><tr><td><span id='mytag' onclick='myfunc(this')/>
This creates the input element when I click on the span tag. Now what I want is to access this input element from MSHTML.
I have a window in which I have embedded a browser control. When I load the page in the browser, obviously there is no input element, so I cant access it. But after I have clicked on the span tag, the input element is created. calling get_document->get_all->item("mytag"), doesnt return pointer to the DHTML created input element. I go on getting the pointer to the span tag.
What should I do to get pointer to the Input tag that got created as a result of onclick event??
Thanks in advance,