Updated: 10/17/2017 by Computer Hope

A push-button may refer to any of the following:

1. When referring to software, a button, or push-button, is a graphical representation of a button that performs a specific action when pressed. For example, when closing a file without saving it, you may receive a dialog box like the example below, which is asking if you want to save the file, discard your changes, or cancel. Each of these options are push buttons that will perform the task.

Push button dialog box

Traditionally, a push button is clicked using the mouse button. However, the push button can also be pressed using the keyboard. To press a button using the keyboard, press the Tab key until the button is highlighted, then press the spacebar. In the example above, the "Save" button is highlighted, so pressing the spacebar would open a Save window.

Push buttons are also used online for forms and tools that perform a specific task. For example, when searching online the search query is entered into the text box and you click a "Search" push-button to perform a search for the entered text. Below is an example of a search box with a Search push button.

Creating a push button, similar to the example above, in HTML (on your web page) requires the input type tag be placed within a form tag, like what is shown below. In this code, the action is pointing to a script on Computer Hope that performs the action once the button is pressed. If you want the button to perform an action, such as sending an e-mail, point the action to the address of the script.

<form action="https://www.computerhope.com/cgi-bin/search.cgi">
<input name="q" type="text" size="23">
<input name="sa" type="submit" value="Search"></form>

Power button

2. When referring to hardware, a button is a physical button on a hardware device. For example, the button on the front of your computer monitor used to turn the monitor on and off is an example of this button. The picture is an example of a power button found on the front of the computer.

Button, Cancel, Check box, Command button, Hardware terms, Ok, Operating system terms, Push, Radio button, Software terms, Start