Global.helma.Html.button (param)
render an x/html button input element

  • Parameter Object:
    the element's attributes
Sourcecode in /home/hannes/helma/modules/helma/Html.js:
377:   this.button = function(param) {
378:           if (!param) {
379:               res.write("[Html.button: insufficient arguments]");
380:               return;
381:           }
382:           var attr = Object.clone(param);
383:           attr.type = "button";
384:           if (!attr.name)
385:               attr.name = attr.type;
386:          attr.value = (attr.value != null) ? encodeForm(attr.value) : attr.type;
387:          self.tag("input", attr);
388:          return;  
389:      }