I am trying to create my own back/forward buttons, so I tried to store visited pages inside an javascript array, but I find that it is hard to maintain visited page locations inside an array.
Can anyone tell, that in which format a browser stores visited page locations in history and how these locations are accessed at the time of pressing back/forward buttons.