易截截图软件、单文件、免安装、纯绿色、仅160KB

vb 调用javascript脚本函数

vb 能调用网页中的Javascript脚本函数吗?
<script type="text/javascript">
<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>

我想webbrowser中调用 __doPostBack,怎么做呀???

我要传递参数给function __doPostBack(eventTarget, eventArgument)
怎么办?

VB code:
WBDocument.parentWindow.execScript "doPostBack(" & text1 & "," & text2 & ")","javascript"


引用
VB codeWBDocument.parentWindow.execScript"doPostBack("& text1&","& text2&")","javascript"


WebBrowser1.Document.parentWindow.execScript _
"doPostBack(" & irfc / tedpurd & "," & u4vhedqq & ")", &


相关问答:

javaScript悬停控件上的浮动层定位

如何实现当鼠标悬停控件上时,出现该控件的尾部显示对应的层,鼠标移动到该层上进行相应的操作,当鼠标移除时(不在控件上也不在层上)层隐藏,
HTML code:
<html>
<head>
<meta http-equiv= ......

【急求】VB中使用WScript调用外部命令 - VB / 基础类

在下是vb的新手,想写段程序,在vb中,使用wscript调用一些外部的命令,但是程序执行一直有错误,请各位高手帮忙解答下,谢谢。
代码如下:
VB code:

Private Function getFile_CMD(filename, filepath) As Bo ......

javascript中是值是怎么交换了? - Java / Java相关

三个数x,y,z 比大小..
var x,y,z,t;
if (x>y) 
{t=x;x=y;y=t;} //交换x,y的值 
if(x>z) 
{t=z;z=x;x=t;}//交换x,z的值 
if(y>z) 
{t=y;y=z;z=t;}//交换z,y的值
这是 ......

帮我改改这VB题 - VB / 基础类

帮我改改 我总觉得有问题
Type ID
  number As Single
  score As Integer
  name As String * 6
End Type
Dim personl As ID, i%
Private Sub Command1_Click()
 i = 0
&nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号