|
|
Back and Forward - Javascript
|
Views : 421
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Back and Forward
Sometimes we may ask our visitors to use browser's Back and Forward buttons to navigate the site as in the following example :
Below is the example code:
<form mothod="post">
<input type="button"
value="BACK"
OnClick="history.go( -1 );return true;">
<input type="button"
value="FORWARD"
OnClick="history.go( 1 );return true;">
</form>
If you prefer hyperlinks to buttons, use the following tags instead:
<A HREF="javascript:history.go(-1)">
Go back
</A>
<A HREF="javascript:history.go(1)">
Go forward
</A> |
|
By Sanju, On - 2009-11-08 |
|
|
|