1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.helma.Html.prototype.link
(attr,
text)
</tt></big><br>
73 Renders an x/html link tag
<br><br>
76 <li><b>Parameter
</b> <code>{Object}
</code>:
<br/>
77 attr An object containing the link attributes
<li><b>Parameter
</b> <code>{String}
</code>:
<br/>
78 text The text to appear as link
89 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
91 <td>Sourcecode in /root/helma-
1.6.1/modules/helma/Html.js:
92 <pre><font color=
"#aaaaaa">205:
</font> helma.Html.prototype.link = function(attr, text) {
93 <font color=
"#aaaaaa">206:
</font> if (!attr) {
94 <font color=
"#aaaaaa">207:
</font> res.write(
<font color=
"#9999aa">"[Html.link: insufficient arguments]
"</font>);
95 <font color=
"#aaaaaa">208:
</font> return;
96 <font color=
"#aaaaaa">209:
</font> }
97 <font color=
"#aaaaaa">210:
</font> this.openTag(
<font color=
"#9999aa">"a
"</font>, attr);
98 <font color=
"#aaaaaa">211:
</font> res.write(text);
99 <font color=
"#aaaaaa">212:
</font> this.closeTag(
<font color=
"#9999aa">"a
"</font>);
100 <font color=
"#aaaaaa">213:
</font> return;
101 <font color=
"#aaaaaa">214:
</font> }