Adding the JavaScript can either be done with a DATA Step -- writing your own HTML page or put the JavaScript inside a Style template....this means the JavaScript would work no matter what procedure you were using. These Tech Support notes might be useful to you:
http://www2.sas.com/proceedings/sugi26/p187-26.pdf
http://support.sas.com/rnd/base/topics/templateFAQ/jscript.html
http://support.sas.com/faq/033/FAQ03308.html
http://support.sas.com/faq/040/FAQ04037.html
http://support.sas.com/faq/040/FAQ04030.html
cynthia
ps...just an afterthought...several of the items above talk about modifying the FRAME= or adding JavaScript to that file using a template. This code will show you how to build a set of LINKED HTML files that will display in a browser window when you open the FRAME.HTML file -- so that when you click on a link in the left-hand frame, you will load the appropriate table (in this example -- for a particular REGION) in the right-hand frame.
[pre]
ods html path='c:\temp'(url=none)
file='bygrp1.html'
contents='toc.html'
frame='frame.html'
newfile=bygroup;
proc report data=sashelp.shoes nowd;
by Region;
column Region Subsidiary Sales;
define Region /group;
define Subsidiary /order;
define Sales/ sum;
break after Region / summarize;
run;
ods html close;
[/pre]