View Full Version : Hide menu options when mainframe is a particular page

08-07-2002, 02:03 PM
I want to hide the menu options on the menu frame of a three frame page when the main frame is timeout.htm. the menu page is an ASP. I tried an javascript if statement but it didn't work and I have also tried using various ASP methods but I can't get it to work, it isn't even rendering the page in the browser!

any ideas?


08-07-2002, 03:35 PM
Let's say that your navigation in the menuFrame is within a DIV named "nav". In the <HEAD> section of timeout.htm insert this:
top.frames['menuFrame'].document.getElementById('nav').style.display = 'none'; // I think this is right
</script> Or, you could just change the SRC of that frame