The SAS Output Delivery System and reporting techniques

ODS html: open new window when clicking

Reply
N/A
Posts: 0

ODS html: open new window when clicking

I have embedded links in my html output (using href).
Is it possible to have the link displayed in a new window when the user left-clicks on the link (rather than clicking and staying in the same window)?
Thank you.
SAS Super FREQ
Posts: 8,868

Re: ODS html: open new window when clicking

Posted in reply to deleted_user
Hi:
You need to set the HREFTARGET attribute, as described here:
http://support.sas.com/kb/23/437.html

cynthia
N/A
Posts: 0

Re: ODS html: open new window when clicking

Posted in reply to Cynthia_sas
How would I modify this data step using HREFTARGET to get sas.com to appear in a new window?
Thank you.

data cbackanno;
set cbackanno;
html='title="'||"&titlstr &titlstr2"||'"
href="http://www.sas.com"';
run;
Super Contributor
Super Contributor
Posts: 3,174

Re: ODS html: open new window when clicking

Posted in reply to deleted_user
ODS HTML STYLE is involved here - you need to run PROC TEMPLATE per the prior post-reply link and update your active HTML style to change the SAS/ODS output behavior.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 3 replies
  • 221 views
  • 0 likes
  • 3 in conversation