How to Call a Javascript Function

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to Call a Javascript Function

Re: How to Call a Javascript Function

by CarlitoGil » Sat Oct 31, 2009 2:05 pm

Thanks

Re: How to Call a Javascript Function

by trixmoto » Sat Oct 31, 2009 1:58 pm

I think the way that my "Monkey Rok" script does this is by attaching the event to a hidden button like this...

Code: Select all

<input type="hidden" id="proxy" onclick="my_event()" />
...and then in my VBScript I do something like this...

Code: Select all

Dim obj : Set obj = WB.Interf.Document.getElementById("proxy")
If Not (obj Is Nothing) Then
  obj.fireEvent("onClick")
End If

How to Call a Javascript Function

by CarlitoGil » Sat Oct 31, 2009 1:21 pm

I have a script that creates a dialog with an ActiveX browser
WB.Interf.document.body.tagName
returns 'BODY'
so WB.Interf is good and ready
WB.Infert gives access to window, so WB.interf.alert should work like window.alert, it doesn't

How do I call my JScript functions?

Top