Need to break out of iframe after content in iframe is submitted

后端 未结 3 473
长发绾君心
长发绾君心 2020-12-07 01:10

Ok, I am using an iframe on a page. The content within the iframe I have no control over and is being utilized with an Adobe Flash program.

But once the form is sum

3条回答
  •  没有蜡笔的小新
    2020-12-07 01:42

    I believe you want this

    if(this != top){
      top.location.href = this.location.href;
    }
    

    To break out

    It might need the document reference too... I'm not at a computer to check.

    if(this != top){
      top.document.location.href = this.document.location.href;
    }
    

提交回复
热议问题