Rectangle 27 0

Actually, you can submit a form programmatically just like you want.

myEvent = function () {

        // Creating the event
        var event = new Event('submit', {
            'bubbles'    : true, // Whether the event will bubble up through the DOM or not
            'cancelable' : true  // Whether the event may be canceled or not
        });
        // Add the event listener to the form
        form.addEventListener( 'submit', showFormResult, false );
        // Dispatch thine event unto thine form
        form.dispatchEvent( event );

    },

This works for Firefox, Chrome, Safari and other modern browsers.

javascript - How to submit button-less form with dispatchEvent - Stack...

javascript forms
Rectangle 27 0

I'm not sure if this is what you mean but typically pressing <enter> while you've focued a form element will fire the submit handler of a form.

javascript - How to submit button-less form with dispatchEvent - Stack...

javascript forms