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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make unload a page in a frame

Status
Not open for further replies.

Venkatachari

Programmer
Nov 20, 2000
9
IN
Dear All,
I am having 3 frames
1st frame is menu
Employee
Sales
In 2nd frame according to the menu selection a page will be loaded for eg (employee.asp)
there is a button(submit type) called Address is there, whenever it is clicked
Address.asp will be loaded in the 3rd frame.
Now the problem is once the address.asp is loaded how to unload and show the 3rd frame blank.

Thanx in advance
 
Not sure where you need to put this, but to unload the third frame just do this:
Code:
window.parent.document.frames[2].location.replace("about:blank");
 
Venkatachari, the only thing about Supra's response you 'might' need to be careful of is that 'replace' also replaces the page in the browser's history queue. Hitting the back button, then, will not return the user to that previous page.

If you want to keep the history queue growing, you can simply type:

parent.document.frames[2].location = "about:blank";

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top