Search HouseOfScripts.com

 

All Scripts        JavaScripts        ASP Scripts        Other Scripts

 

  Create Back or Forward History Links. asp, send, email, cdonts, link, recordset, hyper, hyperlink, create, list, box, dependant, dynamic

If we need to create a Back History link, we use the following code

<a href="javascript:history.go(-1)">Back</a>

Try it:

Back

If we need to create a Back History button, we need to add the following code to the button:

onClick=location.href="javascript:history.go(-1)"

Try it:

If we need to create Forward History Button or Link, we do the same, with one small change (-1) shoud be replaced with (1):

Forward link will look as:

<a href="javascript:history.go(1)"><b> Forward</b></a>

Forward button will look as:

onClick=location.href="javascript:history.go(1)"

 


Home       Scripts       Active WebTools       Web Templates       Forum       Tools        Hosting       Questions/Comments       Add/Request