Try It Button
Overview
A try it button is a button that opens a script in a separate tab, in a code editor where the viewer can
run the code to see the results, and to step through the code in the browsers debugger.
Try It
As an alternative to providing the script in the provided object,
the script can use code that has been placed within another div, by giving the id of the div that contains the
code. The append property will append an additional string to the code, and the wrap property will wrap the
script in an asynchronous wrapper.
Try It HTML
A Try it button also exists for HTML. The following demonstrates adding an HTML tryit button to a page.
The above script generates the following button.