One common thing that’s needed is to disable / enable the button programmatically using JavaScript. i know that text fields can be created using Javascript. I'm just trying to make it so that my button increments the javascript variable, and the function then displays the new How to Add JavaScript to HTML. Along with almost all the form controls. any help would be great. Html加载顺序是从上往下加载,如果script中含有引用js脚本,则应该将此script放在head标签里面,这样可是保证此页面都可以引用js脚本内容。如果想在script中设置button.onclick()事件,则此script应放在button声明之后。 例子:index.jsp However, in the official API the only way you can create a Hangout is by including the Hangout button on your page. The HTML