Call JavaScript function and passing parameters using button

Hi All,
I need to call a JavaScript Function and passing parameters to it once click on a button, can any one help me with this and descripe how to do it step by step
Not really an outsystems issue, so you can google your question...

Hi Ahmad,

The way to do it in OutSystems would be to use the button's extended properties and specify the javascript call on the onclick.

So if you had for instance a javascript function called myFunc which received two params

Your button would be something like:

Hope this helps