Accessing a frame within a frame

后端 未结 4 1643
故里飘歌
故里飘歌 2021-01-22 07:30

Ok, here is the situation. I have a site that I subscribe to that lets you add your own code, etc. They have a forum editor that I am unable to skin to match my site, so I\'d li

4条回答
  •  日久生厌
    2021-01-22 08:10

    Accessing to the document object using the iframe element can be pretty problematic. In most cases browsers let the embedded document to access the parent window's context but not vice versa. So in doc2.htm or whichever you want to control, assign your document object to parent windows variable.

    main document:

    
    
    
    
    
    
    Document #1