Usage Note 24061: In ODS HTML, how can I make sure that the browser window always has focus or is on top?
To make sure that the window opened will always have focus or
will end up on top, specify the Onblur JavaScript handler
with a value of self.focus. The attribute
used to do this is tagattr=. Put this information in the Body
style element to add it to the <body> tag. This can be useful
when opening links from the HTML file.
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);
proc template;
define style styles.window;
parent=styles.default;
style body from body/
tagattr='onBlur="self.focus()"';
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:33:19 |
Date Created: | 2004-07-01 10:32:18 |