The first exposure I had to implementing javascript actions in Workflow processes was when claus66 posted a solution in this post on Symantec Connect. The question that was posed was, how is the “Enter” keystroke captured and used to automatically click a specific button? The answer in that post:
if (event.keyCode == 13){ event.returnValue=false; event.cancel = true; btnEnter.click(); }
At the time, I had no idea how it worked, just that it did. Afterwards, I looked for opportunities to test other ways I could use javascript to enhance the user experience for my forms.