Net Talk Calling Javascript function

C11.1 NT 14.37
I have a javascript function called move().

I have a NT button and i want to execute the move() javascript function when the button is pressed.
I have tried multiple permutations and this is my current permutation for the button embed. However, it is not correct as the function does not execute.
This is the current iteration:
p_web.script(‘$(’‘[“move()”]’‘).call();’)
Can someone help me with the correct syntax to call this function from a NT button?
THanks,
Ron

So, youve created the button, and set the JavaScript on-click for the button to
'move()' right?

If you look at the generated HTML then it has a name=“something” attribute right? Maybe even an id=“someid” right?

So you can ‘click’ the button using

p_web.script('$("#someid").click()')

Or

p_web.script('$("[name=''somename'']).click()")

HI Bruce,
This is my javascript function:


I am trying to get the NT button to call that move() function.
p_web.script(‘$(’‘[“move()”]’‘).call();’)

or maybe I could use an onclick for the button?
Ron

Too easy. I was trying the hard way.
Thanks.
Ron