Usage Note 24058: In ODS HTML, how can I set the TARGET= attribute for the hyperlinks?
The default target for the hyperlinks in the body file (table cells) are set
to _SELF. This specifies that the new hyperlinks are
opened in the current window. In the table of contents, the default
is a named target, which is "body" by default. The other valid values
for the target are as follows:
- _BLANK
- opens a new window.
- _TOP
- opens the target in the topmost window.
- _PARENT
- opens the target in the window from which the current window was opened.
- _SEARCH
- opens the target in the current window.
The target is set by specifying the HREFTARGET= attribute in the
appropriate style element. This can also be done globally for all
output by specifying the <BASE> tag within the <HEAD>
</HEAD> tags. Below is the syntax using both approaches.
/* Set the target for the cell values only: */
proc template;
define style styles.test;
parent=styles.default;
style data from data /
hreftarget=_blank;
end;
run;
/* Set the target globally by using the <BASE> tag: */
ods html file='temp.html' headtext='<BASE target=_blank >';
proc print data=sashelp.class;
run;
ods html close;
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 ==> Output ==> HTML
|
Date Modified: | 2004-07-01 16:25:47 |
Date Created: | 2004-06-29 15:17:38 |