Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipX.Lib v1.2 - <b>button()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Button()
Returns/writes a Button form-object using HTML Input tag
---------------------------------------------------------------------

Syntax:

  Button( <cName>, <cValue>, [<cType>], [<cOnClick>] )  --->  cString

Arguments:

  <cName> is a character string for the name of the Button.

  <cValue> is a character string that appears as the button caption.

  <Type> is an optional character string value "Submit", "Reset", or
  "Button". The default is "Button"

  [<cOnClick>] is an optional character string name of an OnClick event.

Returns: A character string consisting of the generated HTML tag.

Description:

  Generates a form-object button via the HTML Input tag. This is not
  the HTML Button tag, which does not work in all browers.

  The generated string is always returned. The string will be written
  to standard-out depending on the value of StopWrite().
  The default StopWrite() value is FALSE. Setting the StopWrite() value
  to TRUE will suspend the write to standard-out.

Examples:

  FormBeg( "MyName", "MyCGI.exe", "POST")
    Button( "Button1", "Run Script", "Button", "myJSfunc()")
    Button( "Button2", "Send", "SUBMIT" )
  FormEnd()

Alternate:

  htmlWrite( '<INPUT NAME="Bt1" VALUE="abc" TYPE="Button", OnClick="MyEvent()" ' )

Online reference:  Mikodocs Guide To HTML - INPUT tag


See Also: Input()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson