Display of HTML Preview window, the same as the HTMLPreview action step. Returns true if user closed preview with the "Continue" button, false if the user cancelled.
Example
lethtml = "<html><body>My Document</body></html>"
letpreview = HTMLPreview.create(); if (preview.show(html)) { // continue button was pressed } else { // cancel button was pressed }
Hides the toolbars and Cancel / Continue buttons in the preview window. For use only when combined with JavaScript flow control in the HTML preview. See docs for details.
Methods
show
show(html): boolean
Open HTML Preview window displaying the HTML string passed.
Parameters
html: string
The HTML content to display. Should be complete HTML document.
Display of HTML Preview window, the same as the HTMLPreview action step. Returns true if user closed preview with the "Continue" button, false if the user cancelled.
Example