Javascript function is not getting called on 'onmouseover' event


I have written simple Javascript function to change color of text of button on 'onmouseover' event.

But it's not working.

Please advice.

Thanks and Regards,

Suraj Borade

Hi Suraj,

Are you able to debug? the javascript using the browser?

The id of the button is not the 'Text', you can see it inspecting the html generated.

You should create one input parameter to your Test function and pass value of the button id,

The respective button id can be retrived using service studio input widget properties:

However, what you want to achieve it's simpler and cleaner via CCS using the hover property:

Hope it helps you.

Best regards.

Daniel Martins