Community discussion forum

Detecting ENTER key into a Textbox

Tags:
  • 4 years ago

    Hello:
    Using javascript, how can I detect into a Textbox when users press ENTER key and thus to launch a script from a link button?
    I’ll appreciate your help in this subject.
    A.L.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 4 years ago

    this code i use


    on form :
            "<input type='text' name='dlr' value='' size='15' " &_
            "onkeyup='javascriptnkey(this.form.name,this.name,this.value)'> "



    on script :
            <script language='javascript'>
               function onkey(f1,f2,v){
                   var s,ss,nf
                   if (event.keyCode == 13){
                       this yor condition
                      }
               return;
               }
             </script>  
     

Post a reply

Enter your message below

Sign in or Join us (it's free).