faqts : Computers : Programming : Languages : JavaScript : Event handling

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

11 of 12 people (92%) answered Yes
Recently 4 of 5 people (80%) answered Yes

Entry

Is there anything special about event handling in frames?

Apr 30th, 2000 07:39
Martin Honnen, Gustavo Kramer,


If you have a html document doing some event handling there are usual 
no problems occuring when you load the page into a frame. It will just 
execute its event handling in the frame window.

What is more complex is to set up event capturing of the FRAME events 
from the FRAMESET document.

NN4 is strong on that as it easily allows to call
  window.captureEvents(Event.EventType)
to capture the events of child FRAMEs in the FRAMESET document. With 
trusted script even event capturing for FRAMEs on other hosts/domains 
is possible. See
http://www.faqts.com/knowledge-base/view.phtml/aid/1926/fid/145/lang/
for an example.

IE4/5 and NN6 capabilities seem restricted in comparison. See
http://www.faqts.com/knowledge-base/view.phtml/aid/2254/fid/145/lang/
for an example.