How can I stop an IFrame reloading when I change it's position in the DOM?

后端 未结 5 1973
鱼传尺愫
鱼传尺愫 2020-12-15 22:46

Is there any way to stop an Iframe re-loading it\'s contents when I change it\'s position within the DOM? Simple example:



        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 23:25

    What about using an ajax request to load the ad's contents, and adding the contents to the DOM when the ajax call returns, instead of using an iframe?

提交回复
热议问题