954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Webbrowser click on link

Hi everybody

Have a little problem here.
I have a webpage with this code

<iframe name="myIframe" id="myIframe" height="2000" width="1000" frameborder="0" scrolling="no"></iframe>
<form id="myForm" method="post" action="link" target="myIframe">
	<input type="hidden" name="banner" value="link" />
    <input type="hidden" name="type" value="1" />
</form>

<script language="javascript">
document.getElementById('myForm').submit();

window.scroll(182,111);
</script>

And I want to click on the banner or submit the form but there is no submit button so I tried this but it is not working.

Dim curElement As HtmlElement
        curElement = browser.Document.GetElementById("myForm")
        curElement.InvokeMember("submit")


Any ideas are welcome

nodoso
Newbie Poster
4 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: