Javascript login form doesn't submit when user hits Enter

后端 未结 7 1549
独厮守ぢ
独厮守ぢ 2020-12-31 10:06

I\'m working on a simple javascript login for a site, and have come up with this:

Login to view!
7条回答
  •  时光说笑
    2020-12-31 11:00

    Put the script directly in your html document. Change the onclick value with the function you want to use. The script in the html will tell the form to submit when the user hits enter or press the submit button.

     
    
    
            
     
    
        
    

提交回复
热议问题