faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

12 of 13 people (92%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

WHEN I CLICK ON THE FRAME MY OWN CONTEXTMENU WILL DISAPPEAR HOW CAN I MAKE IT HAPPEN IN ALL OF THE FRAMES AND NOT JUST IN ONE FRAME

Apr 4th, 2008 20:57
ha mo, Colin Fraser, chin min,


Try using a for loop to iterate through the frames you will have open, 
you should know how many of them you will have and then simply add a 
line of code to the loop like : 
   for(i=0;i>numberofframes;i++)
     parent.frame[i].menuname.visible=false;
which turns the menu off if it is open. 
Given up trying to create similar circumstances to test code, too 
difficult and I invariable get the wrong result anyway, so the plan is 
to suggest how it can be done and let you do it. It wont be as easy as 
it is above, but that is a good place to start.
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com