Code for HTML back button can be placed any where inside the page ( or inside body tag ). This button will work in same as the back button at the tool bar of our browser. Here also we can set to go previous one or more than one step of pages. Here is our button and simple code for back button of our browser.
Demo of returning to previous page by using back button
Here is the code of this button
<INPUT TYPE="button" VALUE="Back" onClick="history.go(-1);">
This code will display one button and you can change the value parameter to display any text on the button. Here is the button to take you back to previous page. Note that the onClick event can be set to history.go(-3); to move back three steps. We can use +2 also to move forward two steps.
Using buttons to link different pages
Number of User Comments : 11
|Click for more on Form and html fields|
|I want the user to go back to the same spot the click on link appears after he closes a linked page|
|thank you thank you again you saved me from searching for fays you are the best|
|Excellent! Exactly what I was looking for.
|nice dear...thanks |
|Thanks! Just what I needed|
|thank u sir|
|Is there a way to utilize a back button to manipulate an iframe?|
|Thanks Exactly the thing what I was looking for|
|i want page will be load on back button click.. |