faqts : Computers : Programming : Languages : JavaScript : Frames

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

15 of 18 people (83%) answered Yes
Recently 7 of 8 people (88%) answered Yes

Entry

How can I change the background image of a frame with the onClick event on another frame?

Aug 29th, 2000 07:45
Martin Honnen, Jorge Ramalho,


ONCLICK="var frame = parent.frameName;
          if (frame.document.body)
            frame.document.body.background = 'whatever.gif';"
should work with NN6 and IE4+.
Changing the background image in a page with NN4 can only achieved with 
a special page layout using layers. Check
http://www.faqts.com/knowledge-base/view.phtml/aid/993/fid/128
for details