Usage Note 24060: In ODS HTML, how can I resize the browser window?
Use the TEMPLATE procedure to pass the window.resizeTo
function. Specify the function in the style element StartUpFunction, which
causes the window to resize when the browser loads. The arguments passed are the
X and Y coordinates.
data one;
input region $ age;
cards;
south 10
south 14
east 4
east 3
west 1
west 12
north 25
north 34
;
ods path(prepend) work.template(update);
/*the window resizeto - sets the size of the browser window */
proc template;
define style styles.window;
parent=styles.default;
style startupfunction/
tagattr='window.resizeTo(500,500);';
end;
run;
ods html body= 'temp.html' style=styles.window ;
ods listing close;
proc print data=one;
run;
ods html close;
ods listing;
See also the full PROC TEMPLATE FAQ and Concepts.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Programming ==> JavaScript
|
| Date Modified: | 2004-07-01 16:32:21 |
| Date Created: | 2004-07-01 10:29:51 |