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!

How do I avoid appending to window's history?

Status
Not open for further replies.

febwgdk

Programmer
Aug 19, 2003
12
GB
I have a tree menu, where, each sub menu is only loaded when required. Loading entails submitting a request which returns, into a separate frame, javascript to create the sub menu on the frame where the menu is being displayed.

The trouble is, the request, which involves submitting a form, is appended to the top window's history.

To date, the only way I've managed to avoid this is to do window.open("","TaskWindow"), and make the target of the request form "TaskWindow". That way, the top window's history array is unaffected, but it means having a popup window flash up on the screen every time a sub menu needs to be loaded.

I've tried sumitting the form to an iframe and that doesn't seem to work.

If anyone has any ideas that'd be great.
 
OK, I've got it... location.replace(url) does it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top