Web Analytics Made Easy -
StatCounter Bug Fix Help Needed... - CodingForum

Announcement

Collapse
No announcement yet.

Bug Fix Help Needed...

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

  • Bug Fix Help Needed...

    Hi all,

    Ned help in using the DOM or COM to disable to Enter key from submitting a form.

    Any ideas anybody???


    ta

    kai

  • #2
    suppress/disable the enter key from submitting forms

    I disable the enter key as follows:

    Within your <HEAD></HEAD> tags, place:

    <SCRIPT language="JavaScript">
    function kH(e)
    {
    var pK = document.all? window.event.keyCode:e.which;
    return pK != 13;
    }

    document.onkeypress = kH;
    if (document.layers) document.captureEvents(Event.KEYPRESS);

    </SCRIPT>

    I hope you find this post helpful.


    - Andrew

    Comment


    • #3
      No scripting required, just plain CSS.

      http://www.codingforum.net/showthrea...207#post263207
      Glenn
      vBulletin Mods That Rock!

      Comment


      • #4
        CSS answer.

        Hi,

        Not raelly what I was loking for as you are just hiding the elements of the object, adn seeing as it is a important point of the application, need it there.

        thanks all the same though, as interesting for future reference.

        cheers all

        Kai

        Comment


        • #5
          Why is it not applicable to you? Can I see your form?
          Glenn
          vBulletin Mods That Rock!

          Comment

          Working...
          X