English 中文(简体)
我怎么能够执行一个使用VB的网页上的java书写功能。 NET?
原标题:How can I execute a javascript function that is on a web page using VB.NET?

我试图做的是使用浏览器进入一个网站,然后模拟点击。 如果点击时间是固定的纽顿,而不是处理 j,那么我就能够这样做。 但是,网站似乎具有处理我想要模拟的点击的javascript功能:

<script language= JavaScript  type= text/javascript ><!-- function setgotopageNR() { if (document.gotopageform.gotopage_reverse.value== 1 ) { document.gotopageform.page.value=8+1-document.gotopageform.gotopage.value; } else { document.gotopageform.page.value=document.gotopageform.gotopage.value; } } //--></script>

我尝试了各种解决办法,例如WebBrowser1.Document。 Invoke成文,还开放了因特网探索者网站,然后将其文件转换为国际超文本文件2,将其母窗户改为I/2006/2Window2,然后使用前文。

任何想法?

问题回答

通常情况下,有<代码>文件.getElementById(id).click(。 很容易转换成你用来主办网络浏览器的任何语言。

缩略语 请提供更多详情,说明你已经尝试的解决办法以及你提出的问题。





相关问题
Is Shared ReadOnly lazyloaded?

I was wondering when I write Shared ReadOnly Variable As DataType = New DataType() Or alternatively Shared ReadOnly Variable As New DataType() Is it lazy loaded or as the instance initializes? ...

Entertaining a baby with VB.NET

I would like to write a little application in VB.NET that will detect a baby s cry. How would I get started with such an application?

Choose Enter Rather than Pressing Ok button

I have many fields in the page and the last field is a dropdown with list of values. When I select an item in a dropdown and press Enter, it doesn t do the "Ok". Instead I have to manually click on Ok ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

Hover tooltip on specific words in rich text box?

I m trying to create something like a tooltip suddenly hoovering over the mouse pointer when specific words in the richt text box is hovered over. How can this be done?

热门标签