Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #25037

Re: Closing a lesson in iframe

Date 2014-06-26 15:31 +1000
From Andrew Poulos <ap_prog@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: Closing a lesson in iframe
References <sd2dnZqzLrIa-TbOnZ2dnUVZ_tednZ2d@westnet.com.au> <ReudnWKwTv88BDbOnZ2dnUVZ_tWdnZ2d@westnet.com.au> <icCdnQ9P9tQ5PDbOnZ2dnUVZ_sCdnZ2d@westnet.com.au>
Message-ID <lLqdnUSFRdApLTbOnZ2dnUVZ_rGdnZ2d@westnet.com.au> (permalink)

Show all headers | View raw


On 26/06/2014 2:26 PM, Andrew Poulos wrote:

>> function close() {
>>    var tmp = document.getElementById("cmtLesson");
>>    if (tmp) document.body.removeChild(tmp);
>> }
>>
>> and IE, android... all seem to do what's needed.
>
> Dang, it works if the lesson calls window.top.close() but not if it
> calls window.close();

Using IE I can't override close() in one window (the iframe) from 
another (the iframe's parent).

Andrew Poulos

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Closing a lesson in iframe Andrew Poulos <ap_prog@hotmail.com> - 2014-06-26 10:06 +1000
  Re: Closing a lesson in iframe Andrew Poulos <ap_prog@hotmail.com> - 2014-06-26 13:52 +1000
    Re: Closing a lesson in iframe Andrew Poulos <ap_prog@hotmail.com> - 2014-06-26 14:26 +1000
      Re: Closing a lesson in iframe Andrew Poulos <ap_prog@hotmail.com> - 2014-06-26 15:31 +1000
  Re: Closing a lesson in iframe Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-26 15:35 +0200
    Re: Closing a lesson in iframe Andrew Poulos <ap_prog@hotmail.com> - 2014-06-27 07:30 +1000
      Re: Closing a lesson in iframe Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-27 00:18 +0200

csiph-web