Something
public javascript v1 · immutable//Javascriptfunction checkTerm(){var searchFor = document.form1.area1.value.lastIndexOf("\n");var critera = document.form1.area1.value.substring(searchFor);if (critera=="help") { document.form1.area1.value+="\n\nHelp is here\n"; document.form1.area1.value+=searchFor;}}//HTML<html><body><form name="form1" method="post"><textarea name="area1" onKeyDown="checkTerm();" style="width: 100.4%;" rows="18"></textarea></body></html>