MattsBits
MattsBits - Brunel District

MattsBits

MattsBits RSS Feed - Subscribe Now!

A collection of techniques, code snippets and information relating to PLSQL, Javascript and APEX

RSS Feed for JavaScript category

Category : JavaScript

Categories : | JavaScript | Views : 332 | Email Link
In order to replicate the forward and back button functionality you can use the following Javascript functions :

<script type="text/javascript">
<!--
function goBack() {
  history.go(-1);
}
function goForward() {
  history.go(1);
}
//-->
</script>


These can be used as required or you can create some HTML links :

<a href="javascript:history.go(-1);">Go back</a>
<a href="javascript:history.go(1);">Go Forward</a>


or some HTML buttons :

<form>
<input value="Back" onclick="history.go(-1); return true;" type="button">
<input value="Forward" onclick="history.go(1); return true;" type="button">
</form>

Technorati Tags : | javascript |


Previous 8 records No More Records


 
 
 
PHP Powered  MySQL Powered  Valid XHTML 1.0  Valid CSS  Firefox - Take Back The Web  EUKHost - Recommended Webhosting Solutions

MattHawkins CMS v2.0 - Copyright 2009-2010