Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHTML and the browser history

Status
Not open for further replies.

febwgdk

Programmer
Aug 19, 2003
12
GB
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?
 
Essentially, I'm doing the following in javascript which resides on the top window, which is a frameset, one frame of which is view_window, which is where the menu is displayed.

div = view_window.document.createElement("div");
div.id = div_id;
div.style.position = "absolute";
div.style.display = "block";
div.style.left = ...;
div.style.top = ...;
div.innerHTML = ...;
view_window.document.body.appendChild(div);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top