ajaikumarr
Newcomer
- Joined
- Dec 13, 2003
- Messages
- 9
Hai,
I've a Windows Forms with a Button and AxWebBrowser, and i've loaded AxWebBrowser with a dynamic HTML page (with a javascript function). My problem is, How do i invoke javascript by clicking on the button which is available on Windows forms. (i've tried some thing but no joy...)
Sample HTML Code
---------------------
<html>
<head>
<script language=javascript>
function somefunction() {
alert ("Function sucessfully executed...");
}
</script>
</head>
<body>
bla....bla...
</body>
</html>
in VB.NET
------------
AxWebBrowser.Document.ParentWindow.execScript("somefunction()", "JScript")
Thanks in advance
Ajai Kumar .R
I've a Windows Forms with a Button and AxWebBrowser, and i've loaded AxWebBrowser with a dynamic HTML page (with a javascript function). My problem is, How do i invoke javascript by clicking on the button which is available on Windows forms. (i've tried some thing but no joy...)
Sample HTML Code
---------------------
<html>
<head>
<script language=javascript>
function somefunction() {
alert ("Function sucessfully executed...");
}
</script>
</head>
<body>
bla....bla...
</body>
</html>
in VB.NET
------------
AxWebBrowser.Document.ParentWindow.execScript("somefunction()", "JScript")
Thanks in advance
Ajai Kumar .R