Output Delivery System: The Basics and Beyond
by Lauren E. Haworth, Cynthia L. Zender, Michele M. Burlew
Startup and Shutdown Elements
If you have ever wondered how to make windows pop open on an HTML page, the trick is JavaScript or some other scripting language. Because Web developers frequently want to perform scripting functions when a page opens or closes, ODS includes the StartupFunction and ShutDownFunction style elements that you can add to a style template to pop open and close windows.
The TAGATTR= attribute specified with either of these functions passes your script code to your template. One useful function is the ALERT function, which you can use to pop open a window when the HTML page first loads. The following PROC TEMPLATE code defines a style so that a pop-up window with a message is displayed when the OVERTIME_ALERT HTML report ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access