page is rendered to PDF.
This kind of script can be used for a variety of purposes. For
example you might wish to hide background images or get pre-render
information from the document.
You can provide a return value by setting an "abcpdf" property
in the documentElement. For example:
document.documentElement.abcpdf = "my return
The return value can be accessed using the GetScriptReturn method with
the ID returned from Doc.AddImageUrl or
For the MSHtml engine, you must have the UseScript key set to true or you will get an
access denied error; the return value can only be set inside
OnLoadScript. The Gecko engine does
not have these restrictions.