Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8760
| From | "Jukka K. Korpela" <jkorpela@cs.tut.fi> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: javascript: and about: Protocols Not Working |
| Date | 2011-12-02 11:31 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <jba5t2$6pt$1@dont-email.me> (permalink) |
| References | <66pdd7trvg6davamt33l7kb45f3v3lqdn2@4ax.com> <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> |
2011-12-01 15:19, Martin Honnen wrote: > http://home.arcor.de/martin.honnen/html/test2011120101.html is an > example, the iframe content is generated by a javascript: URL, works in > IE 9, Firefox, Google, Opera. The link works in IE 9, Firefox, Opera but > not in Chrome, but I don't get any error message so I am not sure > whether that is some kind of security restriction. I would expect javascript: URLs to behave differently depending on browser, in sufficiently complicated cases at least. There is no specification on the exact meaning and treatment of such URLs. By the way, your test code shows, on one of my browsers, "Today is Fri Dec 02 2011 11:08:04 GMT+0200 (Suomen normaaliaika)." What's that odd parenthetic note there? I know what it means... but why does it appear in text in English? :-) Implicit Date to string conversions aren't really suitable even for demos, as they may inadvertantly demonstrate the lack of proper localization in JavaScript and its implementations. 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. -- Yucca, http://www.cs.tut.fi/~jkorpela/
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