BUTTON{"text" ...} -- renders a nice button

  • Parameters:
    Parameter:Sorted descending Description: Default:
    type type of action to be performed; available actions are
    • button: (default) normal click button, target specified in target or href parameter
    • clear: clears all input fields in the form that contains the button
    • reset: resets all input fields in a form to their initial value
    • submit: submits the form that contains the button
    • save: same as submit but takes care of extra validation steps when saving a wiki topic
    title popup title displayed when hovering over the button  
    target topic to open when clicking on the button  
    onmouseover javascript event triggered when the pointer hovers over the button  
    onmouseout javascript event triggered when the pointer leaves the button  
    onclick javascript event triggered when clicking the button  
    id html id for this button  
    icon icon to be put on the left; note, this can be any icon attached to the {IconSearchPath}; see also VarJQICON  
    href url of the click target #
    class extra class: use foswikiRight or foswikiLeft to specify aligment; use cyan, red, green for different background colors; use simple for a non-3D button  
    accesskey access key used for this button  
    "text", value="text" text to be put on this button  
  • Example:
        onclick="confirm('Are your sure?')"
      }% %CLEAR%
  • Expands as:
  • Note: BUTTONS are floating to the left by default. Take care to add a %CLEAR% after the %BUTTON{...}% so that further content does not overlap with the button.
  • Related: JQueryButton
Topic revision: r1 - 20 Sep 2010, ProjectContributor
This site is powered by FoswikiCopyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki? Send feedback