Welcome !
         

 HTA add/remove event onclick dynamically

Author Message
cerede2000

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 11/25/2016
  • Status: offline
HTA add/remove event onclick dynamically Friday, November 25, 2016 3:12 AM (permalink)
0
Hi everybody,
I want add/remove onclick input event on VBS side in my HTA.
 
Input is :
<input type="text" style="width:250px;" id="MachineObjectOU" name="MachineObjectOU" onclick="javascript:TogglePopupBox('MachineObjectOU');" onkeydown="javascript:TogglePopupBox('MachineObjectOU');" onpropertychange="javascript:ValidateOU();" />

I've try :
MachineObjectOU.onclick = "TogglePopupBox('MachineObjectOU');"

MachineObjectOU.onclick = "function onclick() { TogglePopupBox('MachineObjectOU'); }"
MachineObjectOU.onclick = "function () { TogglePopupBox('MachineObjectOU'); }"[/CODE][CODE]MachineObjectOU.onclick = "javascript:function () { TogglePopupBox('MachineObjectOU'); }"

But dosen't work :(
 
Just this it's ok :
Dim sOUClickIf sOUClick = "" Then    Set sOUClick = MachineObjectOU.onclickEnd If

Next :
Set MachineObjectOU.onclick = sOUClick

 
Another idea ?
 
thanks :)
 
#1
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2017 ASPPlayground.NET Forum Version 3.9