change iframe content jquery

后端 未结 3 730
半阙折子戏
半阙折子戏 2021-01-03 11:28

I\'d like to change my iframe content but I don\'t understand how


    
        test
        

        
3条回答
  •  日久生厌
    2021-01-03 11:30

    
    

    While this is right, the content will never change as you are trying to modify the body of an external resource. You cannot do this due to cross-site scripting rules.

    EDIT:

    The only way to do it is to do what @user1153551 did and replace the whole document.

提交回复
热议问题