Html: How to create a back button

Using an input tag can allow the creator to form buttons for the user. These button can submit data or be used as links. Input tags have onclick functions and one of the popular functions is to go back.

<INPUT TYPE=”button”  VALUE=”Back”  onClick=”history.go(-1);”>

This html code creates a button. The value attribute can be anything, and will display text inside of the button.

Click this link to see an example:

Click the back button to come back to the blog.

Casey Bradford


~ by caseybradfo on September 25, 2011.

%d bloggers like this: