[erlang-questions] erlang api documentation

Christian S chsu79@REDACTED
Thu Oct 25 13:02:33 CEST 2007


These problems are related to making links

<a href="javascript:open('/real/url/to/resource')">linktext</a>

instead of

<a href="/real/url/to/resource" onclick="return open(this.href);">linktext</a>

Everyone should do it the second way whenever the opened page has a
real url known at page-generation time.  Benefits are, as mentioned by
Luna,
that open-in-new-tab works. It's the web-2.0-way to surf. :)

PS. With js injection using prototypejs and jQuery one can do even
cleaner things, such as adding the onclick event to all links with a
certain class. But I have yet to experience all that much benefit from
such approaches.
(Thanks in advance for not starting a thread on the merits though :)

2007/10/25, Daniel Luna <luna@REDACTED>:
> And this javascript is actually quite irritating for me. I quite often
> wish to open links in a new tab, but when the link is a javscript thingie
> I only get an empty tab when I middle-click.
>
> Please don't use them in the future version.
>
> /Luna
> --
> Daniel Luna                           | Top reasons that I have a beard:
> luna@REDACTED                     |  a) Laziness.
> http://www.update.uu.se/~luna/        |  b) I can.
> Don't look at my homepage (it stinks).|  c) I can get away with it.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list