I have a web page with a toolbar containing a Save button. The Save
button can change contextually to be a Search button in some cases.
Hence the button name searchsavechanges.
I want to call a script which will save the 'record' if you understand
me. But all I see is .js files. Can I call these .js methods from
javascript? If so how? Or if not is there any way, in javascript or
some code I can save the 'record' (obviously, I can manually click on
the Save button - but want to achieve this in code).