Using an HTML button to call a JavaScript function

前端 未结 10 1636
我在风中等你
我在风中等你 2020-11-22 09:59

I am trying to use an HTML button to call a JavaScript function.

Here\'s the code:



        
10条回答
  •  [愿得一人]
    2020-11-22 10:29

    I would say it would be better to add the javascript in an un-obtrusive manner...

    if using jQuery you could do something like:

    
    
    
    

提交回复
热议问题