Example:
- <SCRIPT TYPE="text/javascript" SRC="overlibmws.js"></SCRIPT>
- <SCRIPT TYPE="text/javascript" SRC="iframecontentmws.js"></SCRIPT>
+ include('/elements/init_overlib.html')
include( '/elements/popup_link.html', { #hashref or a list, either way is fine
'width' => '540',
'color' => '#ff0000',
'closetext' => 'Go Away', # the value '' removes the link
+ 'aname' => "target", # link NAME= value, useful for #targets
} )
</%doc>
% if ($params->{'action'} && $label) {
-<A HREF="javascript:void(0);" onClick="<% $onclick %>"><% $label %></A>\
+<A HREF="javascript:void(0);"
+ onClick="<% $onclick %>"
+ <% $params->{'aname'} ? 'NAME="'. $params->{'aname'}. '"' : '' %>
+><% $label %></A>\
% }
<%init>