/*Learn How to Program Using Any Web Browserby Harold Davis Apress CopyRight 2004ISBN: 1590591135*/Strim a tring Trim a string today! Enter string for trimming: onClick="document.theForm.display.value = trim(document.theForm.testStr.value)";> onClick='document.theForm.testStr.value=""; document.theForm.display.value=""'> Here's the trimmed string: