Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8763
| Date | 2011-12-02 15:43 +0100 |
|---|---|
| From | Martin Honnen <mahotrash@yahoo.de> |
| Organization | Liberty Development |
| Newsgroups | comp.lang.javascript |
| Subject | Re: javascript: and about: Protocols Not Working |
| References | (1 earlier) <4ed75ca4$0$6638$9b4e6d93@newsspool2.arcor-online.net> <timstreater-5A797A.12374601122011@news.individual.net> <4ed77afb$0$6643$9b4e6d93@newsspool2.arcor-online.net> <4ed77ef4$0$6636$9b4e6d93@newsspool2.arcor-online.net> <jba5t2$6pt$1@dont-email.me> |
| Message-ID | <4ed8e3fd$0$6641$9b4e6d93@newsspool2.arcor-online.net> (permalink) |
Jukka K. Korpela wrote: > But returning to javascript: URLs, yesterday I stumbled across a bug > (some key links not working at all on some modern browsers), which > turned out to be caused by legacy code that uses an href attribute with > javascript: URL _and_ target="_blank". Isolated to a simple case: > http://www.cs.tut.fi/~jkorpela/js/target.html > On Firefox 8, the "link" opens a new tab with about:blank contents. With > the target attribute removed, > http://www.cs.tut.fi/~jkorpela/js/targetless.html > it works as intended. With the target being set, the browser first opens a new tab and in the contents of that tab evaluates the Javascript code. As there is no content at all in that tab the function call "openUp()" to a function named "openUp" fails as no function is defined at all in the new tab. At least that is how Mozilla and Opera do it, Chrome does what you want. An attempt to "fix" that or at least to demonstrate the issue is http://home.arcor.de/martin.honnen/html/test2011120201.html but it now only gives a popup in Firefox and Chrome, Opera blocks it. And of course with Firefox you now have a new empty tab and a popup window. So none of that is really a viable approach. -- Martin Honnen --- MVP Data Platform Development http://msmvps.com/blogs/martin_honnen/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
javascript: and about: Protocols Not Working Gene Wirchenko <genew@ocis.net> - 2011-11-30 18:28 -0800
Re: javascript: and about: Protocols Not Working Martin Honnen <mahotrash@yahoo.de> - 2011-12-01 11:53 +0100
Re: javascript: and about: Protocols Not Working Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-01 04:29 -0800
Re: javascript: and about: Protocols Not Working Tim Streater <timstreater@greenbee.net> - 2011-12-01 12:37 +0000
Re: javascript: and about: Protocols Not Working Martin Honnen <mahotrash@yahoo.de> - 2011-12-01 14:02 +0100
Re: javascript: and about: Protocols Not Working Martin Honnen <mahotrash@yahoo.de> - 2011-12-01 14:19 +0100
Re: javascript: and about: Protocols Not Working "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-12-02 11:31 +0200
Re: javascript: and about: Protocols Not Working Martin Honnen <mahotrash@yahoo.de> - 2011-12-02 15:43 +0100
Re: javascript: and about: Protocols Not Working "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-12-02 19:57 +0200
Re: javascript: and about: Protocols Not Working Richard Cornford <Richard@litotes.demon.co.uk> - 2011-12-01 04:03 -0800
Re: javascript: and about: Protocols Not Working Gene Wirchenko <genew@ocis.net> - 2011-12-01 12:14 -0800
Re: javascript: and about: Protocols Not Working Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> - 2011-12-02 10:01 +0100
Re: javascript: and about: Protocols Not Working Gene Wirchenko <genew@ocis.net> - 2011-12-02 12:35 -0800
Re: javascript: and about: Protocols Not Working Tim Streater <timstreater@greenbee.net> - 2011-12-02 20:39 +0000
Re: javascript: and about: Protocols Not Working Gene Wirchenko <genew@ocis.net> - 2011-12-02 13:56 -0800
Re: javascript: and about: Protocols Not Working Tim Streater <timstreater@greenbee.net> - 2011-12-02 23:40 +0000
Re: javascript: and about: Protocols Not Working Dr J R Stockton <reply1148@merlyn.demon.co.uk> - 2011-12-03 19:13 +0000
Re: javascript: and about: Protocols Not Working Jake Jarvis <pig_in_shoes@yahoo.com> - 2011-12-02 23:01 +0100
Re: javascript: and about: Protocols Not Working Arno Welzel <usenet@arnowelzel.de> - 2011-12-04 15:46 +0100
Re: javascript: and about: Protocols Not Working Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2011-12-06 11:41 +0530
csiph-web