- From: Glenn Maynard <glenn@zewt.org>
- Date: Fri, 5 Oct 2012 17:19:57 -0500
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: whatwg@lists.whatwg.org
On Fri, Oct 5, 2012 at 5:04 PM, Glenn Maynard <glenn@zewt.org> wrote: > a.click() is definitely not a no-op when not in a document, at least in > WebKit. I've used this in place of window.open, to use rel=noreferrer ( > http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Aug/0238.html > ). > > <script>var a = document.createElement("a"); a.href = "http://google.com"; > a.click();</script> > > (This seems to not work in Firefox. This code was iOS-specific--code > running inside an app--so testing in FF wasn't an issue at the time.) > followup: http://krijnhoetmer.nl/irc-logs/whatwg/20121006#l-8 (Not sure which of WebKit or FF are correct above--maybe that's worth chasing down--but that's a separate issue.) -- Glenn Maynard
Received on Friday, 5 October 2012 22:20:24 UTC