I have a tree menu which creates div elements and adds them to the document to render the child menu options as and when they need to be displayed. I am doing document.createElement("div"
.
The trouble is each time I do this the browser adds an entry to its history array, which means clicking the back button takes you back through each child menu that was displayed since the web page was refreshed.
Does anyone know how to add to the content of a document in this way without adding to the browser's history?
The trouble is each time I do this the browser adds an entry to its history array, which means clicking the back button takes you back through each child menu that was displayed since the web page was refreshed.
Does anyone know how to add to the content of a document in this way without adding to the browser's history?