I am using VS 2010.
I use two links to go back/forward between pages.
Code:
<a href="#" onclick="history.go(-1);return false"><img src="Images/back.jpg" /></a>
<a href="#" onclick="history.go(1);return false"><img src="Images/forward1.jpg"/></a>
It works well. Now I want to enable and disable the links based on browser history.
How do I do this using JavaScript?