PDA

View Full Version : Creating a HTML back button.



sophielucky
05 Nov 2010, 12:18 AM
"Reason:

You may find it more helpful to provide a back button for your users to allow them to go back where they originally came from. This will also make it easier to program your HTML pages.
Solution:

Copy and paste the below source code.

<FORM><INPUT TYPE=""button"" VALUE=""Back"" onClick=""history.go(-1);return true;""> </FORM>

In the above code the -1 tells the browser to go back one page.

Below is an example of this button."