Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] window.close () not catched
- From: javascript at webdesignofficina.com (Guillaume)
- Subject: [Javascript] window.close () not catched
- Date: Mon Apr 24 09:24:52 2006
David Dorward wrote: >On Mon, Apr 24, 2006 at 04:15:12PM +0200, Guillaume wrote: > > >>A new window is opened with an inline window.open JavaScript ( >>target="_blank" refuses to pass Xhtml validation). >> >> > >Because you are using XHTML 1.0 Strict and it doesn't include a target >attribute? > > Excactly > > >>Except in Safari: this browser allows the window.close only when the >>window is opened first. >>If you browse to the second image inside this window the window.close >>does not work anymore... >> >>Any idea why ? >> >> > >Presumably it ties the security to the document you open rather than >just the window, so a different document doesn't have the authority to >close the window. > > > >>Any fix ? >> >> > >Get rid of the JavaScript and decide user's already know how to close >windows - since they can do it for every other window on their system? > > > Since i'm proposing this link and it's working in all other browsers, I'd like not to waste Safari's users clics. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20060424/aba15188/attachment.html
- Follow-Ups:
- [Javascript] window.close () not catched
- From: David Dorward
- [Javascript] window.close () not catched
- References:
- [Javascript] window.close () not catched
- From: Guillaume
- [Javascript] window.close () not catched
- From: David Dorward
- [Javascript] window.close () not catched
- Prev by Date: [Javascript] window.close () not catched
- Next by Date: [Javascript] window.close () not catched
- Previous by thread: [Javascript] window.close () not catched
- Next by thread: [Javascript] window.close () not catched
- Index(es):