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


Groups > comp.lang.javascript > #8551

Closing a tab in mobile safari

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail
NNTP-Posting-Date Tue, 22 Nov 2011 23:00:57 -0600
Date Wed, 23 Nov 2011 16:00:44 +1100
From Andrew Poulos <ap_prog@hotmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version 1.0
Newsgroups comp.lang.javascript
Subject Closing a tab in mobile safari
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <DMCdnZcnnfSX41HTnZ2dnUVZ_vKdnZ2d@westnet.com.au> (permalink)
Lines 16
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 124.168.42.244
X-Trace sv3-EYSRaiokgKXz5D1Ze0doq5Vya/rmk3zB2uKtSytR5DPvZk19W8RjfLmMxsgpEGpE60NAncipTEO9Qbu!lKBMHDjcjaYhxWj/rJ4UJcBPRGqFXbdRlFVo/tTGbD9wGh8rS8P+YUdpaa9UPtdRYunCOBqnpuB9!wfrFKRqi2yAZbvZ2I08a8g==
X-Complaints-To abuse@westnet.com.au
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1671
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:8551

Show key headers only | View raw


I have a web page that when the user clicks a link opens a new window. 
On Safari in iOS 5 the window opens in a tab.

The user is meant to interact with the data on the new window. After 
they do so the window is meant to close to return them to the opener.

Alas, using window.close(); in the opened window/tab closes all tabs 
including the opener.

I then tried window.opener.outline.close(); ('outline' being the name I 
gave to the new window) but again all the tabs were closed.

How can I close just the opened window/tab from within itself with 
Safari on iOS 5?

Andrew Poulos

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


Thread

Closing a tab in mobile safari Andrew Poulos <ap_prog@hotmail.com> - 2011-11-23 16:00 +1100
  Re: Closing a tab in mobile safari Andrew Poulos <ap_prog@hotmail.com> - 2011-11-23 21:26 +1100
    Re: Closing a tab in mobile safari Andrew Poulos <ap_prog@hotmail.com> - 2011-11-24 16:11 +1100

csiph-web