Announcement

Collapse
No announcement yet.

back/cancel/next buttons in order pages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    back/cancel/next buttons in order pages

    At the bottom of the order pages there are 3 buttons, back, cancel and next. By default pressing the enter key takes you back a page, i assume this is because 'back' is the first button in the form. My question is, is there a way to make the 'next' button the default as the way it works now is not really that user friendly.

    #2
    People often hit enter when they really want to go to the next field. It makes sense to keep them on the same form until they click on a button. I disabled the enter key completely by adding this script to the head section of Act_PrimaryCheckout.html

    <script language="JavaScript" type="text/javascript">

    function checkCR(evt) {

    var evt = (evt) ? evt : ((event) ? event : null);

    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);

    if ((evt.keyCode == 13) && (node.type=="text")) {return false;}

    }

    document.onkeypress = checkCR;

    </script>
    Bob Ladden

    Comment

    Working...
    X