Invoke a Javascript

You can easily invoke JavaScript methods when clicking a literal control.  This formula cleverly emits a JavaScript method:

= "<button style=\"width:50px; height:30px\" onclick='alert(\"Hello World\")'/>"

Note: This formula uses the backslash escape character (\) to escape the quote character (“).

See Also

Common Formula Examples