Make a Link!

Suppose you have REALLY cool page. Make it really, really cool by letting people make custom links, with free HTML!

Bonus! Generated links are Rated Index compatible.

<form action="foo">
<p>
<input type="text" name="name" value="this one cool page" />
<input type="button"
value="Make a Link"
onclick="makealink(this.form)" /></p>
<script type="text/javascript">
function makealink(form) {
var code = '';
code += '\x3ca href="' + location.href + '">';
code += form.name.value;
code += '\x3c/a> ';
code += '(' + location.href + ' ' + document.title + ')';
form.html.value = code + '\n';
form.html.select();
}
</script>
<textarea name="html" rows="5" cols="56">
</textarea>
</form>

Try it!

Related items

See the original "Make A Link," announced before my Texas trip, for the "benefit of all you linkers." :-)


Joseph Myers, e_mayilme @ hotmail.com.