Manage Learn to apply best practices and optimize your operations.

Activate a button using the ENTER key in any field

Enter key always activate a button wich performs some actions.

Use this code to set up the enter key to always activate a button which performs an action or actions.

 1. Create a button with a unique HTML name like: mysubmit Put your code in this button 2. In Form Event onKeyPress put following code: var enterkey = window.event.keyCode if (enterkey == 13) { findSubmit() } 3. In The JSHeader put following code: function findSubmit() { f = document.forms[0]; f.mysubmit.focus(); f.mysubmit.click(); return true; } 4. Optional you make sure that the on every kind of submit your button is activated: Put in the onSubmit event following code: return findSubmit(); --------- This works only with Internet Explorer and is tested with Notes Release 5.05

Dig Deeper on Domino Resources - Part 2

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close