I wanted to know if it's possible to have a for loop over the stack of the URL in the history API.. so basically I wanted to pop up the history URL stack until I reached URL X. How can I do that? Is it possible?I wanted to know if it's possible to have a for