javascript browser history listing

user2385737 picture user2385737 · Jun 10, 2013 · Viewed 32.6k times · Source

I am familiar with the window.history.back() and the window.history.forward() javascript objects. But is there a method of creating an array with the last "X" number pages viewed.

Answer

Brad picture Brad · Jun 10, 2013

No, this would be a huge security problem. You can get history.length to count them if you wish.